Leave Yamada UI a star

Star
Yamada UIYamada UIv1.5.1

Fieldset

Fieldset is a component used to group elements such as legends, helper messages, and error messages in a fieldset element.

Source@yamada-ui/form-control

Props

FieldsetProps

errorMessage

Description

The fieldset error message to use.

Type

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

errorMessageProps

Description

Props the error message component.

Type

ErrorMessageProps

helperMessage

Description

The fieldset helper message to use.

Type

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

helperMessageProps

Description

Props the helper message component.

Type

HelperMessageProps

isDisabled

Description

If true, the fieldset will be disabled.

Type

boolean

Default

false

isInvalid

Description

If true, the fieldset will be invalid.

Type

boolean

Default

false

isReadOnly

Description

If true, the fieldset will be readonly.

Type

boolean

Default

false

isReplace

Description

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

Type

boolean

Default

true

isRequired

Description

If true, the fieldset will be required.

Type

boolean

Default

false

legend

Description

The fieldset legend to use.

Type

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

legendProps

Description

Props the label component.

Type

LegendProps

optionalIndicator

Type

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

requiredIndicator

Type

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

LegendProps

isRequired

Type

boolean

optionalIndicator

Type

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

requiredIndicator

Type

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

Edit this page on GitHub

PreviousFormControlNextButton