Skip to content

Commit

Permalink
docs(button): update icon only button story to show props (#7006)
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Oct 9, 2020
1 parent dabc9b5 commit c2f77ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/components/Button/Button-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ export const Playground = () => {
);
};

export const IconButton = () => <Button {...props.iconOnly()} hasIconOnly />;
export const IconButton = () => (
<Button renderIcon={Add16} iconDescription="Icon Description" hasIconOnly />
);

IconButton.story = {
name: 'Icon Button',
Expand Down

0 comments on commit c2f77ab

Please sign in to comment.