Form

High-performance form wrappers providing data collection, validation, and layout structures for form controls.

When To Use

  • When you need to create an instance or collect information.
  • When you need to validate fields in certain rules.

Sign Up

Create an account to get started.

Must be at least 8 characters long.

Basic Vertical Layout

The most common layout groups labels and controls vertically. Wrap each input inside a FormItem and a FormControl.

This is your public display name.

Please enter a valid email address.

Horizontal Layout

When using layout="horizontal", labels and inputs are aligned horizontally, which is typical for dense settings pages.

Inline Layout

When using layout="inline", all form controls will align in a single row. This is perfect for simple inputs like search bars or newsletter signups.

Form API

Property
Description
Type
Default

layout

Form layout direction 'vertical' | 'horizontal' | 'inline' 'vertical'

FormItem API

Property
Description
Type
Default

layout

Form layout direction 'vertical' | 'horizontal' | 'inline' 'vertical'

label

Label for the form item string undefined

required

Displays a required asterisk (*) boolean false

help

Help text below the input string undefined

htmlFor

The ID of the input this label controls string undefined

error

Indicates an error state or displays an error message string | boolean undefined

success

Indicates a success state or displays a success message string | boolean undefined

disabled

Disables the component boolean false