Tags Input

A YouTube/GitHub-style tags input for React with chip UI, keyboard shortcuts (Enter/Comma/Backspace), paste-to-chips, and optional autocomplete. Accessible and customizable for modern forms.

Current Tags:

Tags WithEdit

Current Tags:

Installation

npx uilayouts@latest add tags-input

Props

PropTypeDefaultDescription
tagsstring[][]Array of strings representing the tags to display in the input.
setTagsReact.Dispatch<React.SetStateAction<string[]>>-Function to update the tags array, typically used with a useState hook.
editTagbooleantrueOptional flag that enables or disables the ability to edit tags in the input compone