From 9c4cf06538e9390397bb4c62cc9f624ed2712abd Mon Sep 17 00:00:00 2001 From: Marcus Kazmierczak Date: Thu, 21 Nov 2019 21:33:00 -0800 Subject: [PATCH] Add storybook for Tip component (#18542) * Add story for Tip component * Add text knob --- packages/components/src/tip/stories/index.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/components/src/tip/stories/index.js diff --git a/packages/components/src/tip/stories/index.js b/packages/components/src/tip/stories/index.js new file mode 100644 index 00000000000000..41080be29275bd --- /dev/null +++ b/packages/components/src/tip/stories/index.js @@ -0,0 +1,20 @@ +/** + * External dependencies + */ +import { text } from '@storybook/addon-knobs'; + +/** + * Internal dependencies + */ +import Tip from '../'; + +export default { title: 'Components|Tip', component: Tip }; + +export const _default = () => { + const tipText = text( 'Text', 'An example tip' ); + return ( + +

{ tipText }

+
+ ); +};