Skip to main content

Label

Text badges notify users of line items that need attention.

https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=21926-2099

Demo

zeta-web v0.11.0
Web Components

Storybook

https://design.zebra.com/web/storybook/?path=/docs/components-badges--docs

Slots

NameDescriptionType
defaultText displayed on the label. If not provided, the label property will be used.text

Attributes

NameDescriptionTypeDefault
statusType of text label."info" | "positive" | "warning" | "negative" | "neutral""neutral"
labelText displayed on label.Can also be slotted.string | undefinedundefined

Inherited Attributes

NameDescriptionTypeDefaultInherited From
roundedWhether the component is rounded or sharp.When true, rounded will set the border radius of the first child, and any children with class 'contourable-target' to --radius-minimal.Otherwise, this value will be --radius-none.boolean | undefinedtrueContourable