Tag Input
A field that turns text into tags. Enter or a comma adds one, pasting a list adds several; new tags spring in from the caret and removed ones collapse while the rest close up.
$149 once · every Pro piece
Customize
Backspace and the arrow keys walk through the tags; a duplicate warms the existing tag instead.
Install
npx shadcn@latest add @obsyde/tag-inputNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { TagInput } from '@/components/obsyde/ember/tag-input/TagInput';
export function Example() {
return (
<TagInput label="Tags" placeholder="Add a tag" />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/tag-input/TagInput.tsxcomponentember/tag-input/tag-input.cssstylesember/tag-input/TagInputDemo.tsxdemoember/forms-kit/kit.tsxsharedember/shared/spring.tssharedember/shared/accent.tssharedember/shared/ember.cssshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
labelLabel | string | 'Tags' |
valueTags (comma-separated) | string | — |
placeholderPlaceholder | string | 'Add a tag' |
maxMax (0 = none) | number | 0 |
disabledDisabled | boolean | false |