Skip to content

Commit

Permalink
refactor: button stories with icons (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliepina authored Dec 12, 2022
1 parent 4183519 commit 196e25d
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions packages/button/stories/DefaultButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export default {
}
},
iconStart: {
options: systemIcons,
mapping: systemIconLabels
options: Object.keys(SystemIcons),
mapping: SystemIcons
},
iconEnd: {
options: systemIcons,
mapping: systemIconLabels
options: Object.keys(SystemIcons),
mapping: SystemIcons
}
},
args: {
Expand Down Expand Up @@ -66,15 +66,10 @@ export const _DangerButton = args => (
<DangerButton {...args}>{args.children}</DangerButton>
);

export const WithIconBeforeButtonText = args => (
<StandardButton iconStart={SystemIcons.Close} {...args}>
Icon button
</StandardButton>
);

export const WithIcon = Template.bind({});
WithIcon.args = {
iconStart: SystemIcons.Close
export const WithIcons = Template.bind({});
WithIcons.args = {
iconStart: SystemIcons.Close,
iconEnd: SystemIcons.ArrowRight
};

export const IconOnly = Template.bind({});
Expand Down

0 comments on commit 196e25d

Please sign in to comment.