-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Need to update docs to highlight new features:
- Uploading files now uses
Fileobjects with a server action - Server actions now receive a
FormDataobject, instead of a basic object -
onChangemethod added to allow callback to run when any value in the form changes -
reffor<Form>component now returns a custom object instead of just the form element. Contains the following keys:// `DataStructure` is equivalent to `Yup.InferType<typeof schema>` and contains definitions for all values in the form form: HTMLFormElement submit: () => void reset: () => void values: WithRecaptcha<DataStructure> fields: { [P in DataStructure as string]?: HTMLElement } -
FormReftype is now exported from@superrb/react-addons/src/components/form
Metadata
Metadata
Assignees
Labels
No labels