storybook/docs/snippets/react/button-group-story.js.mdx
2021-02-23 00:26:03 +00:00

22 lines
492 B
Plaintext

```js
// ButtonGroup.stories.js
import React from 'react';
import { ButtonGroup } from '../ButtonGroup';
//👇 Imports the Button stories
import * as ButtonStories from './Button.stories';
export default {
title: 'ButtonGroup',
component: ButtonGroup,
};
const Template = (args) => <ButtonGroup {...args} />;
export const Pair = Template.bind({});
Pair.args = {
buttons: [{ ...ButtonStories.Primary.args }, { ...ButtonStories.Secondary.args }],
orientation: 'horizontal',
};
```