import React, { useState } from 'react'; import { action } from 'storybook/actions'; import { States } from '../../utilities'; import { Textarea } from '../Textarea'; import { Select } from '../Select'; import { Field, FieldProps } from './Field'; export default { title: 'Components/Field' }; export const Default = () => ( states={[ {}, { focus: true }, { disabled: true }, { defaultValue: 'With value' }, { error: 'Something is wrong', defaultValue: 'With value' }, { label: 'Name of input' }, { label: 'Name of input', error: 'Something went wrong' } ]} > ); export const AribitraryChildren = () => ( states={[ {}, { focus: true }, { disabled: true }, { defaultValue: 'With value' }, { error: 'Something is wrong', defaultValue: 'With value' }, { label: 'Name of input' }, { label: 'Name of input', error: 'Something went wrong' } ]} >