storybook/docs/snippets/react/button-group-story.js.mdx
2021-08-28 01:52:57 +01:00

20 lines
401 B
Plaintext

```js
// ButtonGroup.stories.js | ButtonGroup.stories.jsx
import { ButtonGroup } from '../ButtonGroup';
//👇 Imports the Button stories
import * as ButtonStories from './Button.stories';
export default {
component: ButtonGroup,
};
export const Pair = {
args: {
buttons: [{ ...ButtonStories.Primary.args }, { ...ButtonStories.Secondary.args }],
orientation: 'horizontal',
},
};
```