children | JSX.Element | string | React element children. |
customAttributes | object | Custom attributes for the component. |
customClasses | string | Array | object | Custom classes for the component. |
htmlFor | string | The for attribute for the label. |
icon | string | The icon for the label tooltip. |
iconPrefix | string | The icon prefix for the label. |
isVisible | boolean | If label is visible (true) or hidden (false). |
label | string | Label text. |
loaderProps | object | Props passed to the RingLoader when loading. All RingLoader props can be overridden. |
loading | boolean | If true, displays a RingLoader inline with the label text. |
loadingDelay | number | Delay in ms before the loading indicator appears. Prevents flash for fast operations. Default 0. |
loadingText | string | Optional text to display in place of label while loading. If empty, the label text remains. |
locked | boolean | If the label is locked (disables form element and puts an icon with optional tooltip next to label). |
lockedMessage | string | The message to display when the label is locked, in a tooltip. (optional) |
size | string | The font size for the label. |
spacing | string | number | Array | object | The spacing for the component, as a string, number, array, or object. |
tagName | string | The HTML tag to use for the label element (e.g., 'label', 'legend'). |
weight | string | The font weight for the label. |