import React from 'react' import { storiesOf } from '@storybook/react' import { withKnobs, boolean, select } from '@storybook/addon-knobs/react'; import withReadme from 'storybook-readme/with-readme' import Readme from './README.md' import { DropDown, DropDownItem } from 'asc-web-components' import Section from '../../../.storybook/decorators/section'; storiesOf('Components | DropDown | DropDownItem', module) .addDecorator(withKnobs) .addDecorator(withReadme(Readme)) .add('base item', () => { const isUserPreview = boolean('Show user preview', true); const isHeader = boolean('Show category`s', true); const isSeparator = boolean('Show separator', true); const useIcon = boolean('Show icons', true); const direction = select('direction', ['left', 'right'], 'left'); return (
console.log('Button 1 clicked')} /> console.log('Button 1 clicked')} /> console.log('Button 2 clicked')} /> console.log('Button 3 clicked')} /> console.log('Button 4 clicked')} /> console.log('Button 1 clicked')} /> console.log('Button 5 clicked')} /> console.log('Button 6 clicked')} />
) });