Form
import { Form, Input, Select } from '@editora/ui-react';
<Form
heading="Profile"
description="Save account preferences."
autosave
autosaveDelay={1200}
onSubmit={(values) => console.log(values)}
onInvalid={(errors) => console.log(errors)}
>
<Input name="email" label="Email" required />
<Select name="role" label="Role">
<option value="editor">Editor</option>
<option value="reviewer">Reviewer</option>
</Select>
</Form>;
Key Props
onSubmit, onInvalid, onValidate, onAutosave, onDirtyChange, novalidate, autosave, autosaveDelay, guardUnsaved, heading, description, state, stateText, loadingText, variant, tone, density, shape, elevation, gap, headless, loading, disabled
Notes
ui-reactform state comes fromui-form; standard HTML form transport props are not the primary API here.- Child controls should provide
namewhen they need to participate in collected form values.