Skip to content

Commit

Permalink
Add dashicon component to storybook (#18027)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaz authored and hypest committed Nov 4, 2019
1 parent 181042a commit fb283f0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/components/src/dashicon/stories/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* External dependencies
*/
import { number, text } from '@storybook/addon-knobs';

/**
* Internal dependencies
*/
import Dashicon from '../';

export default { title: 'Dashicon', component: Dashicon };

export const _default = () => {
const icon = text( 'Icon', 'wordpress' );
const color = text( 'Color', '#0079AA' );
const size = number( 'Size', 20 );

return (
<Dashicon
icon={ icon }
color={ color }
size={ size }
/>
);
};

0 comments on commit fb283f0

Please sign in to comment.