storybook/docs/snippets/react/list-story-starter.ts.mdx
2022-07-15 11:09:15 -07:00

23 lines
544 B
Plaintext

```ts
// List.stories.ts|tsx
import React from 'react';
import type { ComponentStoryObj, ComponentMeta } from '@storybook/react';
import { List } from './List';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/7.0/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'List',
component: List,
} as ComponentMeta<typeof List>;
//👇 Always an empty list, not super interesting
const Template: ComponentStoryObj<typeof List> = {};
```