| form | string | undefined | — | ID of the form associated with this control, including when it is rendered outside that form element. |
|---|
| className | string | undefined | — | Additional classes for this part. Preserve contrast, visible focus and responsive content when adapting styles. |
|---|
| defaultChecked | boolean | undefined | — | Initial checked state for a control supporting uncontrolled selection. Inherited DOM typing does not give a layout wrapper checkbox behavior. |
|---|
| defaultValue | string | number | readonly string[] | undefined | — | Initial value for a control supporting uncontrolled state. Inherited DOM typing alone does not give a layout wrapper input behavior. |
|---|
| autoFocus | boolean | undefined | — | Request automatic focus when the element mounts or the primitive opens, according to its source behavior. Choose initial focus deliberately in context. |
|---|
| id | string | undefined | — | Stable DOM identifier used by labels, descriptions or other explicit associations. |
|---|
| role | React.AriaRole | undefined | — | Semantic role appropriate to the rendered element. Preserve required relationships and keyboard behavior. |
|---|
| onFocus | React.FocusEventHandler<HTMLLabelElement> | undefined | — | Receive the native focus event. Preserve the component's existing keyboard and focus behavior. |
|---|
| onBlur | React.FocusEventHandler<HTMLLabelElement> | undefined | — | Receive the native blur event when focus leaves this control. |
|---|
| onChange | React.ChangeEventHandler<HTMLLabelElement, Element> | undefined | — | Receive the native change event; read the actual control value or checked state from its event target. |
|---|
| onKeyDown | React.KeyboardEventHandler<HTMLLabelElement> | undefined | — | Receive keyboard events. Preserve built-in keyboard behavior unless deliberately implementing an accessible alternative. |
|---|
| onClick | React.MouseEventHandler<HTMLLabelElement> | undefined | — | Receive activation events. The consumer owns the action performed and its result. |
|---|
| onSelect | React.ReactEventHandler<HTMLLabelElement> | undefined | — | Handle the selection event defined by this part's source signature. DOM text-selection events differ from menu or command activation callbacks. |
|---|
| asChild | boolean | undefined | — | Merge this part into one child instead of its default element. Preserve that child's semantics, ref support and accessibility attributes. |
|---|
| htmlFor | string | undefined | — | ID of the actual form control named by this label. |
|---|
| ref | React.Ref<HTMLLabelElement> | undefined | — | Allows getting a ref to the component instance.
Once the component unmounts, React will set ref.current to null
(or call the ref with null if you passed a callback ref). |
|---|