storybook/docs/snippets/vue/list-story-starter.ts-4-9.mdx
2023-12-27 20:47:00 +00:00

23 lines
407 B
Plaintext

```ts
// List.stories.ts
import type { Meta, StoryObj } from '@storybook/vue3';
import List from './ListComponent.vue';
const meta = {
component: List,
} satisfies Meta<typeof List>;
export default meta;
type Story = StoryObj<typeof meta>;
// Always an empty list, not super interesting
export const Empty: Story = {
render: () => ({
components: { List },
template: '<List/>',
}),
};
```