import { useState } from 'react'; import { action } from 'storybook/actions'; import { createSandboxStory, globalScope, } from '../../../.storybook/components/sandbox/SandboxEditor'; import { Input } from '../../Inputs/Input/Input'; import { Field, FieldProps } from '../..'; import { Sentiment } from '../../common'; import DateInput from '../../DateInput'; import { lorem10, lorem40 } from '../../test-utils'; import { TextArea } from '../../Inputs/TextArea/TextArea'; import { SearchInput } from '../../Inputs/SearchInput/SearchInput'; import Info from '../../Info'; export default { component: Field, title: 'Forms/Field', argTypes: { messageIconLabel: { control: 'text', }, }, }; export const Sandbox = createSandboxStory({ code: ` `, scope: globalScope, }); 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)} />