name string — Name name Description The name of the field. Submitted with its owning form as part of a name/value pair, and used to match server errors on a FormRoot . Takes precedence over the name of the control.
Type string Default — disabled boolean false Name disabled Description When true , prevents the user from interacting with the field's control. Takes precedence over the disabled of the control.
Type boolean Default false required boolean false Name required Description When true , indicates that the user must set the value before the owning form can be submitted.
Type boolean Default false invalid boolean Name invalid Description When true , marks the field invalid regardless of its own validation. Useful when the field state is controlled by an external library.
Type boolean Default dirty boolean Name dirty Description Whether the field's value has changed from its initial value. Useful when the field state is controlled by an external library.
Type boolean Default touched boolean Name touched Description Whether the field has been touched (its control blurred). Useful when the field state is controlled by an external library.
Type boolean Default validate FieldValidateFn — Name validate Description Custom validation function. Return an error message (or array of messages) when invalid, or null /undefined when valid. Receives the control's value and the values of every named field in the owning form.
Can be async, but an async validate does not prevent form submission when validationMode is onSubmit .
Type ( value : unknown , formValues : Record < string , unknown >) : FieldValidateResult | Promise < FieldValidateResult > Default — validationMode FieldValidationMode 'onSubmit' Name validationMode Description When the field (re-)runs validation. Takes precedence over the validationMode of an ancestor FormRoot .
onSubmit : when the form is submitted, then on every change after that.onBlur : when the control loses focus.onChange : on every change to the control's value.Type 'onBlur' | 'onChange' | 'onSubmit' Default 'onSubmit' validationDebounceTime number — Name validationDebounceTime Description How long to wait (in ms) between validate calls when validating on change.
Type number Default — asChild boolean false Name asChild Description Change the default rendered element for the one passed as a child, merging their props and behavior.
Read Reka UI's Composition guide for more details.
Type boolean Default false as AsTag | Component — Name as Description The element or component this component should render as. Can be overwritten by asChild .
Type ComponentOptions < any , any , any , ComputedOptions , MethodOptions , any , any , any , string , {} , {} , string , {} , {} , {} , string , ComponentProvideOptions > | ( props : any , ctx : Omit <{ attrs : Attrs ; slots : Readonly < InternalSlots > ; emit : ( event : string , ... args : any []) => void ; expose : < Exposed extends Record < string , any > = Record < string , any >>( exposed ?: Exposed | undefined ) => void ; } , 'expose' >) : any | ComponentPublicInstanceConstructor < any , any , any , any , ComputedOptions , MethodOptions > | 'a' | 'button' | 'div' | 'form' | 'h2' | 'h3' | 'img' | 'input' | 'label' | 'li' | 'nav' | 'ol' | 'p' | 'span' | 'svg' | 'ul' | 'template' | {} & string Default — class ClassValue — Name class Description Classes added to the part's own element, after its recipe classes.
Type null | string | false | Record < string , any > | ClassValue [] Default — orientation FieldOrientation 'vertical' Name orientation Description Label above the control, beside it, or responsive : beside it once the field group is wide enough.
Type 'vertical' | 'horizontal' | 'responsive' Default 'vertical'