storybook/docs/snippets/common/button-group-story-subcomponents.ts.mdx
2021-01-28 00:11:22 +00:00

14 lines
259 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;
```