Skip to content

Properties

PropertyTypeDescription
forIdstring(optional) The same unique id like the linked HTML element has.
textReact.ReactNode(optional) The text of the label. You can use children as well.
srOnlyboolean(optional) When true, the label will be invisible and only accessible for screen readers.
verticalboolean(optional) Defaults to true. If set to false, the label will be displayed horizontally (inline).
size"basis"
"medium"
"large"
(optional) Define one of the following heading sizes: basis, medium or large.
skeletonboolean(optional) If set to true, an overlaying skeleton with animation will be shown.
disabledboolean(optional) If set to true, the label will behave as not interactive.
elementReact.Element(optional) Defines the HTML element used. Defaults to label.
refReact.Ref(optional) Attach a React.Ref to the inner label element.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.