Skip to content
Cynco UI

Components · Inputs

TagSelect

A multi-select shown as removable tags in a select-style field.

import { TagSelect } from "@cynco-labs/ui";

Example

Use

Choosing several known options (tags, branches, tax codes).

Props

value, onChange, options [{value,label}], placeholder, optional formatTag, renderContent, className (the field box). Label it with id + a <label htmlFor> (FormLabel, FieldLabel), or aria-label / aria-labelledby; aria-describedby and aria-invalid also go on the trigger.

Notes

The trigger fills the field from behind and announces "{n} selected"; the tags sit beside it, not inside it, so each "Remove {label}" button is its own tab stop. Removing a tag moves focus to the next tag, or back to the trigger.

Source Demo source Markdown