ns-ui / tag-input-cord
Enter or comma cinches a bead onto the cord — Backspace on an empty input unravels the last one
ns-ui
Tag input as beads threaded onto a cord: committing a tag cinches a bead into place with one overshoot squeeze while its knot draws on; Backspace on an empty input unravels the last bead with a drop-and-twist. Duplicate commits shudder the existing bead instead of re-threading it.
Use when entry is the moment worth designing, since each accepted tag cinches into place as a bead on a visible cord and a duplicate shudders the existing bead instead of silently adding nothing, so rejection and repetition are legible where the user is typing; pick tag-input-pull or tag-input-tear instead when the interesting problem is removal, or tag-input-backspace when accidental Backspace deletion is the specific complaint.
Install
npx shadcn add https://design.helpmarq.com /r/tag-input-cord.jsonns-ui / tag-input-cord
Enter or comma cinches a bead onto the cord — Backspace on an empty input unravels the last one
| Prop | Type | Default | Description |
|---|---|---|---|
| defaultTags? | string[] | — | — |
| placeholder? | string | — | — |
| label? | string | — | accessible name for the text input |
| maxTags? | number | — | — |
| onChange? | (tags: string[]) => void | — | — |
| className? | string | — | — |