Field
Composition wrapper: label + control + description + error with automatic ARIA wiring.
Generated from the package's public source.
API
Controlcomponent
Control(props: FieldControlProps): Element
children: (controlProps: () => Record<string, string | boolean | undefined>) => Element
Descriptioncomponent
Description(props: FieldDescriptionProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
Errorcomponent
Error(props: FieldErrorProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
FieldControlPropsinterface
children: (controlProps: () => Record<string, string | boolean | undefined>) => Element
FieldDescriptionPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
FieldErrorPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
FieldLabelPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
FieldRootPropsinterface
Props
class?stringdisabled?booleanid?string— Explicit ID for the field control. Auto-generated if omitted.invalid?booleanreadOnly?booleanrequired?booleanstyle?string | CSSProperties
children: Element
Labelcomponent
Label(props: FieldLabelProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
Rootcomponent
Root(props: FieldRootProps): Element
Props
class?stringdisabled?booleanid?string— Explicit ID for the field control. Auto-generated if omitted.invalid?booleanreadOnly?booleanrequired?booleanstyle?string | CSSProperties
children: Element