Skip to main content

Tag

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

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

Demo​

zeta-web v1.4.2
Web Components

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.'left' | 'right'"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