mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 05:41:07 +08:00
20 lines
401 B
Plaintext
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',
|
|
},
|
|
};
|
|
```
|