From 2be9d6a84c27588c918f0e8cd5a389953fb9a572 Mon Sep 17 00:00:00 2001 From: Brent Swisher Date: Tue, 17 Mar 2020 20:10:44 -0400 Subject: [PATCH] Add storybook story for toolbar button component --- .../src/toolbar-button/stories/index.js | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/components/src/toolbar-button/stories/index.js diff --git a/packages/components/src/toolbar-button/stories/index.js b/packages/components/src/toolbar-button/stories/index.js new file mode 100644 index 0000000000000..1bb0475003e16 --- /dev/null +++ b/packages/components/src/toolbar-button/stories/index.js @@ -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 ( + + + + ); +};