Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
add stories for Chip
Browse files Browse the repository at this point in the history
  • Loading branch information
haszari committed Aug 20, 2020
1 parent d85a8e3 commit 55d563d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions assets/js/base/components/chip/stories/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* External dependencies
*/
import { text, select } from '@storybook/addon-knobs';

/**
* Internal dependencies
*/
import * as components from '../';

export default {
title: 'WooCommerce Blocks/@base-components/Chip',
component: Chip,
};

const radii = [ 'none', 'small', 'medium', 'large' ];

export const Chip = () => (
<components.Chip
text={ text( 'Text', 'example' ) }
radius={ select( 'Radius', radii ) }
/>
);

export const RemovableChip = () => (
<components.RemovableChip
text={ text( 'Text', 'example' ) }
radius={ select( 'Radius', radii ) }
/>
);

0 comments on commit 55d563d

Please sign in to comment.