Skip to main content

Status Label

Demo

zeta-web v0.9.0
Web Components

To help some information, labels, or errors stand out, we present them with badges. They can look like buttons, but users can’t select them. They just guide users to things they should pay attention to.

Storybook

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

Slots

NameDescriptionType
defaultText displayed on label.text

Attributes

NameDescriptionTypeDefault
statusType of status label."info" | "positive" | "warning" | "negative" | "neutral""neutral"
labelText displayed on label.Can also be slotted.string | undefinedundefined
iconIcon leading the component.ZetaIconName | undefinedundefined
showIconWhether to show a custom icon.An icon must be provided for this to have an effect.booleantrue

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

Figma

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