On this page

Tags input

When to use Tags input, when to use something else, and tokens.

Draft. Ported from the shadcn-vue Tags input and restyled with Beehexa tokens. Not yet approved; the API may still change.

A field where people type values that turn into removable tags.

When to use

  • A short list of free-text values: labels, email addresses, SKUs.

When not to use

  • Choosing from a known list. Use a Combobox with multiple selection.

Tokens

Part Tokens
Field at least 32 px (size.control.default), radius.control, 1 px color.border.bold on color.surface
Tags tag.height, tag.padding, space.050 apart
Focus the text-field focus: the edge turns color.border.focus with a 2 px inset ring of the same colour
Invalid color.border.danger