Skip to content

Commit

Permalink
test(button-group): add variant button
Browse files Browse the repository at this point in the history
  • Loading branch information
chongruei committed Sep 16, 2023
1 parent 6ea7058 commit d65e3c8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/components/button/stories/button-group.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,26 @@ const Template = (args: ButtonGroupProps) => (
</ButtonGroup>
);

const VariantButtonTemplate = (args: ButtonGroupProps) => (
<ButtonGroup {...args} variant="solid">
<Button>One</Button>
<Button variant={args.variant}>Two</Button>
<Button>Three</Button>
</ButtonGroup>
);

export const Default = {
render: Template,

args: {
...defaultProps,
},
};

export const VariantButton = {
render: VariantButtonTemplate,

args: {
...defaultProps,
},
};

0 comments on commit d65e3c8

Please sign in to comment.