storybook/docs/snippets/svelte/button-group-story.js.mdx
2021-02-10 21:13:23 +01:00

24 lines
440 B
Plaintext

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