DocSpace-client/web/ASC.Web.Storybook/stories/input/combobox/combobox.stories.js

35 lines
902 B
JavaScript
Raw Normal View History

2019-07-18 08:00:54 +00:00
import React from 'react'
import { storiesOf } from '@storybook/react'
import { withKnobs, boolean} from '@storybook/addon-knobs/react';
import withReadme from 'storybook-readme/with-readme';
import Readme from './README.md';
import Section from '../../../.storybook/decorators/section';
import { ComboBox } from 'asc-web-components'
let options = [
2019-07-18 08:00:54 +00:00
{
key: '0',
label: '25 per page'
2019-07-18 08:00:54 +00:00
},
{
key: '1',
2019-07-18 08:00:54 +00:00
label: '50 per page',
},
{
key: '2',
label: '100 per page'
2019-07-18 08:00:54 +00:00
}
];
storiesOf('Components|Input', module)
.addDecorator(withKnobs)
.addDecorator(withReadme(Readme))
.add('combo box', () => (
<Section>
<ComboBox
options={options}
2019-07-18 08:00:54 +00:00
isDisabled={boolean('isDisabled', false)}
withBorder={boolean('withBorder', true)}
2019-07-18 08:00:54 +00:00
/>
</Section>
));