Form
A form whose fields check their values with the browser's own validation before it submits, with a message for each way a value can fail, on Radix Form.
Usage
Examples
Messages
A FormMessage with no children writes Radix's own words for its match, as the empty field here shows, and children put yours in their place, as a wrong address shows.
Match
match takes one of the browser's checks, such as valueMissing, or a function of the value and the form's data, which may be async, and the message shows while it returns true.
Server invalid
serverInvalid on a FormField and forceMatch on its FormMessage show an error the server sent back, here half a second after any submit, until onClearServerErrors clears it on the next one.
API Reference
It takes the props of Radix Form.Root.