Skip to main content

Status Label

Demo

zeta-web v0.6.6
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.

Slotted children:

  • Text
  • Icon

Storybook

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

Attributes

NameDescriptionTypeDefault
statusType of status label."info" | "positive" | "warning" | "negative" | "neutral""neutral"
textText displayed on label.Can also be slotted.string | undefinedundefined
iconIcon leading the component.ZetaIconName | 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

Figma

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