import * as React from 'react';
import { storiesOf } from '@storybook/react';
import { wInfo } from '@utils/wInfo';
import { Dropdown } from '.';
export const props = {
name: 'country',
label: 'Select a country from the list',
items: [
{
value: '5d5bf4d9e7ebe340fc846213',
label: 'Guatemala'
},
{
value: '5d5bf4d9fa31771843bd23c6',
label: 'Mozambique'
},
{
value: '5d5bf4d912736993347c4e65',
label: 'Zambia'
},
{
value: '5d5bf4d98324ba80aac87304',
label: 'Cambodia'
},
{
value: '5d5bf4d9c4a86a16a85e8739',
label: 'Brazil'
},
{
value: '5d5bf4d95f14816d098bedfb',
label: 'Bouvet Island'
},
{
value: '5d5bf4d9901c3a7d300bc3f7',
label: 'Philippines'
},
{
value: '5d5bf4d9fdc72a0abb8e841f',
label: 'Mexico'
},
{
value: '5d5bf4d9bac13ec3dc0cf70b',
label: 'Faroe Islands'
},
{
value: '5d5bf4d93483a2684318d1c2',
label: 'United Kingdom'
},
{
value: '5d5bf4d97471e04037135905',
label: 'Iran'
},
{
value: '5d5bf4d9a98fe0c3937f8f2b',
label: 'Guam'
},
{
value: '5d5bf4d928ae4cf7a9d1f17d',
label: 'Mauritania'
},
{
value: '5d5bf4d9d573116a2576c82a',
label: 'Costa Rica'
},
{
value: '5d5bf4d90fa71bbb349481b2',
label: 'Jordan'
},
{
value: '5d5bf4d98f6a458e19c81e7f',
label: 'Niue'
},
{
value: '5d5bf4d979fc1591975bc293',
label: 'Wallis and Futuna Islands'
},
{
value: '5d5bf4d985dc3d1c74d523ff',
label: 'Grenada'
}
]
};
const stories = () => storiesOf('Dropdown', module) as any;
stories().addWithJSX(
'Default',
wInfo(`
### Usage
~~~js
import Dropdown from './';
const props = {
name: 'country',
label: 'Select a country from the list',
items: [
{
value: '5d5bf4d9e7ebe340fc846213',
label: 'Guatemala'
},
{
value: '5d5bf4d9fa31771843bd23c6',
label: 'Mozambique'
},
]
};
~~~`)(() => (
))
);