Browse components

Form

Form element with method, action and native validation you can switch off.

molecules

Live example

Default usage you can copy and adapt.

Basic Form

Simple form with fields

With Validation

Form with validation rules

Props

The props you are most likely to need, with types and defaults.

Props / API
NameTypeRequiredDefaultDescription
method'get' | 'post'NopostForm method.
actionstringNo—Form action.
novalidatebooleanNofalseSkip the browser's own validation.
onsubmit(event: SubmitEvent) => voidNo—Runs on submit.