import { useState } from 'react'; import { action } from 'storybook/actions'; import { Input } from '../inputs/Input'; import { Field, FieldProps } from './Field'; import { Sentiment } from '../common'; import DateInput from '../dateInput'; import { lorem10, lorem40 } from '../test-utils'; import { TextArea } from '../inputs/TextArea'; import { SearchInput } from '../inputs/SearchInput'; import Info from '../info'; export default { component: Field, title: 'Forms/Field', argTypes: { messageIconLabel: { control: 'text', }, }, }; export const Basic = (args: FieldProps) => { const [value, setValue] = useState('This is some text'); return (
setValue(target.value)} /> setValue(target.value)} /> setValue(target.value)} /> setValue(target.value)} />