mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 15:52:19 +08:00
18 lines
321 B
Plaintext
18 lines
321 B
Plaintext
```ts
|
|
// List.stories.ts|tsx
|
|
|
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
|
|
import { List } from './List';
|
|
|
|
const meta: Meta<typeof List> = {
|
|
component: List,
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof List>;
|
|
|
|
//👇 Always an empty list, not super interesting
|
|
export const Empty: Story = {};
|
|
```
|