Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

FormControl

FormControlは、フォーム要素に、ラベル、ヘルパーメッセージ、エラーメッセージなどをグループ化するために使用されるコンポーネントです。

ソース@yamada-ui/form-control

Props

FormControlProps

errorMessage

説明

The form control error message to use.

タイプ

type ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

errorMessageProps

説明

Props the error message component.

タイプ

ErrorMessageProps

helperMessage

説明

The form control helper message to use.

タイプ

type ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

helperMessageProps

説明

Props the label component.

タイプ

HelperMessageProps

isDisabled

説明

If true, the form control will be disabled.

タイプ

boolean

デフォルト

false

isInvalid

説明

If true, the form control will be invalid.

タイプ

boolean

デフォルト

false

isReadOnly

説明

If true, the form control will be readonly.

タイプ

boolean

デフォルト

false

isReplace

説明

If true, switch between helper message and error message using isInvalid.

タイプ

boolean

デフォルト

true

isRequired

説明

If true, the form control will be required.

タイプ

boolean

デフォルト

false

label

説明

The form control label to use.

タイプ

type ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

labelProps

説明

Props the label component.

タイプ

LabelProps

optionalIndicator

タイプ

type ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

requiredIndicator

タイプ

type ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

LabelProps

isRequired

タイプ

boolean

optionalIndicator

タイプ

type ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

requiredIndicator

タイプ

type ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

HelperMessageProps

ErrorMessageProps

GitHubでこのページを編集する

フォームFieldset