Form
Forms

Form.

Native semantic form and consistent action row.

Real interactive component
Live demo

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

5 props
ParameterTypeRequiredDefaultPossible valuesDescription
childrenReactNodeNo——Form elements and optional FormActions.
onSubmitFormEventHandler<HTMLFormElement>No——Native form submit callback.
actionstringNo——Native HTML form action URL.
method"get" | "post" | "dialog"Nogetget · post · dialogNative submission method.
classNamestringNo——Additional styling.