Components
API Reference

API Reference

Tags are used to categorize or label items.

<Tag>Short text</Tag>

Parameters

props

  • Type: @vtex/shoreline-components.TagProps & @types/react.React.RefAttributes<typescript.HTMLDivElement>

Props

color (optional)

Tag color

  • Type: blue | cyan | gray | green | orange | pink | purple | red | teal | yellow

  • Default: 'gray'

size (optional)

Tag size

  • Type: normal | large

  • Default: 'normal'

variant (optional)

Tag variant

  • Type: primary | secondary

  • Default: 'primary'

View source (opens in a new tab)