Skip to main content

Tag

Demo

zeta-web v0.9.0
Web Components

Tags are used to draw attention to a specific area or information. The arrow shape helps direct the users attention to the desired place.

Storybook

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

Slots

NameDescriptionType
defaultThe text to display in the tag.text

Attributes

NameDescriptionTypeDefault
labelText displayed in the tag.Currently, it is best to use this property instead of the slot, as the slot does not provide an aria label.string | undefinedundefined
directionDirection of the tag point."right" | "left""right"

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=22000-13170