Skip to content

Commit

Permalink
Add storybook for Tip component (#18542)
Browse files Browse the repository at this point in the history
* Add story for Tip component

* Add text knob
  • Loading branch information
mkaz authored Nov 22, 2019
1 parent 983c60f commit 9c4cf06
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/components/src/tip/stories/index.js
Original file line number Diff line number Diff line change
@@ -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 (
<Tip>
<p>{ tipText }</p>
</Tip>
);
};

0 comments on commit 9c4cf06

Please sign in to comment.