storybook/docs/snippets/common/button-group-story-subcomponents.ts.mdx
2021-05-06 21:05:56 +01:00

13 lines
258 B
Plaintext

```ts
// ButtonGroup.stories.ts
import { Meta } from '@storybook/react/types-6-0';
import { Button, ButtonGroup } from '../ButtonGroup';
export default {
title: 'Path/to/ButtonGroup',
component: ButtonGroup,
subcomponents: { Button },
} as Meta;
```