storybook/docs/snippets/common/button-group-story-subcomponents.ts.mdx
2021-06-28 23:00:33 +01:00

13 lines
284 B
Plaintext

```ts
// ButtonGroup.stories.ts | ButtonGroup.stories.tsx
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;
```