Skip to content

Commit

Permalink
Add storybook story for toolbar button component
Browse files Browse the repository at this point in the history
  • Loading branch information
brentswisher committed Apr 16, 2020
1 parent 533d43b commit 2be9d6a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/components/src/toolbar-button/stories/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* External dependencies
*/
import { text } from '@storybook/addon-knobs';

/**
* Internal dependencies
*/
import { Toolbar } from '../../';
import ToolbarButton from '../';

export default { title: 'Components/ToolbarButton', component: ToolbarButton };

export const _default = () => {
const label = text( 'Label', 'This is an example label.' );
const icon = text( 'Icon', 'wordpress' );

return (
<Toolbar __experimentalAccessibilityLabel="Example Toolbar">
<ToolbarButton icon={ icon } label={ label } />
</Toolbar>
);
};

0 comments on commit 2be9d6a

Please sign in to comment.