mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:11:49 +08:00
24 lines
540 B
Plaintext
24 lines
540 B
Plaintext
```ts
|
|
// List.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/html';
|
|
|
|
import { createList, ListArgs } from './List';
|
|
|
|
const meta: Meta<ListArgs> = {
|
|
/* 👇 The title prop is optional.
|
|
* See https://storybook.js.org/docs/7.0/vue/configure/overview#configure-story-loading
|
|
* to learn how to generate automatic titles
|
|
*/
|
|
title: 'List',
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<ListArgs>;
|
|
|
|
// Always an empty list, not super interesting
|
|
export const Empty: Story = {
|
|
render: (args) => createList(args),
|
|
};
|
|
```
|