Web: components: RadioButtonGroup: fixed story
This commit is contained in:
parent
785cd69f52
commit
49d384f14d
@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/react';
|
||||
import withReadme from 'storybook-readme/with-readme';
|
||||
import { RadioButtonGroup } from 'asc-web-components';
|
||||
import Section from '../../../.storybook/decorators/section';
|
||||
import {text, boolean, withKnobs, select, number } from '@storybook/addon-knobs/react';
|
||||
import {withKnobs} from '@storybook/addon-knobs/react';
|
||||
import Readme from './README.md';
|
||||
|
||||
storiesOf('Components|Input', module)
|
||||
@ -15,18 +15,29 @@ storiesOf('Components|Input', module)
|
||||
<Section>
|
||||
<>
|
||||
<div> First list</div>
|
||||
<RadioButtonGroup spaceBtwnElems='33' selected='apple' name="test" options={
|
||||
[
|
||||
{ value: 'apple', label: 'Яблоко' },
|
||||
{ value: 'mandarin', label: 'Мандарин'}]} />
|
||||
<RadioButtonGroup
|
||||
selected='apple'
|
||||
name="test"
|
||||
options={
|
||||
[
|
||||
{ value: 'apple', label: 'Apple' },
|
||||
{ value: 'mandarin', label: 'Mandarin'}
|
||||
]
|
||||
}
|
||||
/>
|
||||
<div> Second list</div>
|
||||
<RadioButtonGroup spaceBtwnElems='55' selected='veh' name="test2" options={
|
||||
[
|
||||
{ value: 'Car' },
|
||||
{ value: 'veh', label: 'Vehicle', disabled: true },
|
||||
{ value: 'veh1', label: 'Vehicle1' },
|
||||
{ value: 'veh2', label: 'Vehicle2', disabled: true }
|
||||
]} />
|
||||
<RadioButtonGroup
|
||||
selected='veh'
|
||||
name="test2"
|
||||
options={
|
||||
[
|
||||
{ value: 'Car' },
|
||||
{ value: 'veh', label: 'Vehicle', disabled: true },
|
||||
{ value: 'veh1', label: 'Vehicle1' },
|
||||
{ value: 'veh2', label: 'Vehicle2', disabled: true }
|
||||
]
|
||||
}
|
||||
/>
|
||||
</>
|
||||
</Section>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user