Skip to content

Label ​

Overview ​

A label component built on Reka UI's Label with consistent form label styling.

Theme entry: Label

Props ​

NameTypeRequiredDefaultDescription
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
classimport('vue').HTMLAttributes['class']undefinedAdditional CSS classes to apply to the root element.
asstring|objectundefinedThe element or component to render as.
asChildbooleanfalseWhen true, merges props onto the child element instead of rendering a wrapper.
forstringundefinedThe id of the element this label is associated with.

Slots ​

default ​

Slot.

Source ​

client/lib/shell/label/Label.vue