Form

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

いつ使うか

  • インスタンスを作成したり、情報を収集したりする必要がある場合。
  • 特定のルールでフィールドを検証する必要がある場合。

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

プロパティ
説明
タイプ
デフォルト

layout

フォームのレイアウト方向 'vertical' | 'horizontal' | 'inline' 'vertical'

FormItem API

プロパティ
説明
タイプ
デフォルト

layout

フォームのレイアウト方向 'vertical' | 'horizontal' | 'inline' 'vertical'

label

フォームアイテムのラベル string undefined

required

必須の星印(*)を表示します boolean false

help

入力の下のヘルプテキスト string undefined

htmlFor

このラベルが制御する入力のID 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