Skip to content

Label API

API reference docs for the Stash Label component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import Label from '@leaflink/stash/Label.vue';

Props

NameTypeDefaultDescription
disabledboolean-Indicates whether the label is disabled.
forstringundefinedThe `id` of the input element that this label is associated with.
hasErrorbooleanfalseIndicates whether the label should be styled as an error.
isDisabledfalse
isRequiredbooleanfalseIndicates whether the input element that this label is associated with is required.
legendbooleanfalseIndicates whether the wrapper element to be rendered should be a label or a legend.
showOptionalbooleanfalseIndicates whether the label should show that the input is optional.

Slots

NameDescription
defaultThe label text

Events

None