Default
Type a tag and press Enter or comma to add. Use arrow keys to navigate suggestions; Enter to select; Escape to close. Backspace removes the last tag when the field is empty.
- react
- nextjs
default.tsx
const [tags, setTags] = useState(["react", "nextjs"]);
<TagInput
tags={tags}
onChange={setTags}
placeholder="Add a tag..."
/>