import React from 'react' import { Container } from '@toptal/picasso' import { SPACING_4 } from '@toptal/picasso-utils' import type { FormConfigProps } from '@toptal/picasso-forms' import { FormNonCompound, ConfigProvider, SubmitButton, Autocomplete, DatePicker, Input, NumberInput, PasswordInput, RichTextEditor, Select, TagSelector, TimePicker, } from '@toptal/picasso-forms' import { htmlToHast } from '@toptal/picasso-rich-text-editor/utils' const formConfig: FormConfigProps = { highlightAutofill: true, } const april2nd = new Date(2023, 3, 2) const INITIAL_RTE_VALUE = '

Rich Text Editor

' const Example = () => ( window.alert(JSON.stringify(values, undefined, 2))} initialValues={{ 'highlight-firstName': 'Bruce', 'highlight-autocomplete': 'foo', 'highlight-datepicker': april2nd, 'highlight-numberinput': 1, 'highlight-passwordinput': 'password', 'highlight-rte': INITIAL_RTE_VALUE, 'highlight-select': 'foo', 'highlight-tagselector': 'foo', 'highlight-timepicker': april2nd, }} >