Skip to main content

Priority Pill

Demo

zeta-web v0.9.0
Web Components

This badge is used to indicate the order of importance.

Storybook

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

Slots

NameDescriptionType
defaultMain text of the priority pill.text

Attributes

NameDescriptionTypeDefault
labelText of Priority.Can also be slotted.string | undefinedundefined
indexCharacter shown at start of component. Will be truncated to a single character if longer.Can also be slotted.The value of this property is usually a single digit number that indicates the priority level.string | number | undefinedundefined
status(Optional) Status of the priority pill.This changes the color and content of the pill.If not provided, the primary color will be used."urgent" | "high" | "medium" | "low" | undefinedundefined
sizeSize of the priority pill"small" | "large""large"
typeType of the priority pillLozenge shows the whole badge, including the text, while badge only shows the index character."badge" | "lozenge""lozenge"

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

CSS Properties

NameDescription
--priority-pill-index-background-colorColor of the index character.
--priority-pill-index-text-colorBackground color of the index.
--priority-pill-text-colorColor of the text.
--priority-pill-background-colorBackground color of the pill.

Figma

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