storybook/docs/snippets/common/component-story-sort-controls.ts.mdx
2022-11-30 20:25:47 +00:00

20 lines
512 B
Plaintext

```ts
// YourComponent.stories.ts|tsx
import { YourComponent } from './YourComponent';
// Replace your-framework with the name of your framework
import type { Meta } from '@storybook/your-framework';
const meta: Meta<typeof YourComponent> = {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/7.0/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'YourComponent',
component: YourComponent,
};
export default meta;
```