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