Label
Accessible label element linked to form controls via htmlFor.
Generated from the package's public source.
API
LabelRootPropsinterface
Props
class?stringdisabled?boolean— Whether the associated field is disabled (visual hint only).htmlFor?string— The id of the form control this label is associated with.id?string— Element id for external reference.invalid?boolean— Whether the associated field is invalid (visual hint only).required?boolean— Whether the associated field is required (visual hint only).style?string | CSSProperties
children: Element
Rootcomponent
Root(props: LabelRootProps): Element
Props
class?stringdisabled?boolean— Whether the associated field is disabled (visual hint only).htmlFor?string— The id of the form control this label is associated with.id?string— Element id for external reference.invalid?boolean— Whether the associated field is invalid (visual hint only).required?boolean— Whether the associated field is required (visual hint only).style?string | CSSProperties
children: Element