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