mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
16 lines
367 B
Plaintext
16 lines
367 B
Plaintext
```ts
|
|
// YourComponent.stories.ts|tsx
|
|
|
|
// Replace your-framework with the name of your framework
|
|
import type { Meta } from '@storybook/your-framework';
|
|
|
|
import { YourComponent } from './YourComponent';
|
|
|
|
const meta = {
|
|
component: YourComponent,
|
|
parameters: { controls: { sort: 'requiredFirst' } },
|
|
} satisfies Meta<typeof YourComponent>;
|
|
|
|
export default meta;
|
|
```
|