Props

Name Description Type Default Required
label
Text label
string null —
icon
An icon that will be prepended to the label. Uses the same icon names as the KIcon component
string null —
iconAfter
An icon that will be appended to the label. Uses the same icon names as the KIcon component
string null —
color
If provided, sets the color of the label and any icons that are provided
string null —
maxWidth
Limits label width to this value
string '100%' —

Slots

Name Description
icon
Optional slot as alternative to icon prop
default
Optional slot as alternative to label prop
iconAfter
Optional slot as alternative to iconAfter prop