storybook/docs/snippets/react/button-group-story.js.mdx
2020-08-14 21:46:15 +01:00

19 lines
448 B
Plaintext

```js
// ButtonGroup.stories.js
import React from 'react';
import { ButtonGroup } from '../ButtonGroup';
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',
};
```