import React from 'react'; import { boolean, optionsKnob, text, withKnobs } from '@storybook/addon-knobs'; import { Description, Divider, Switch, Wrapper } from '../../..'; import { OptionsKnobRecord } from '../../util/knobs'; import { Tag, TagPropsType } from './tag.component'; export default { title: 'GEENEE-UI/Tag', component: Switch, decorators: [ withKnobs ] }; const tagColors: OptionsKnobRecord = { default: undefined, key: 'key', violet: 'violet', blue: 'blue', green: 'green', yellow: 'yellow', red: 'red', grey: 'grey' }; const tagColorsMap = Object.keys(tagColors); const tagSizes: OptionsKnobRecord = { default: undefined, xs: 'xs', sm: 'sm', md: 'md', lg: 'lg' }; const tagSizesMap = Object.keys(tagSizes); export const Playground = () => ( { text('label', 'tag') } ); export const Colors = () => ( { tagColorsMap.map((item, index) => ( { item } { text('label', 'tag') } )) } ); export const Sizes = () => ( { tagSizesMap.map((item, index) => ( { item } { text('label', 'tag') } )) } );