storybook/docs/snippets/html/list-story-starter.ts.mdx
2022-11-17 16:33:22 +01:00

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),
};
```