Component libraryTag input
Tag input
ProA controlled native tag field with removable tokens, optional consumer suggestions and form-owned values.
npx shadcn@latest add @tidal-pro/tag-inputInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/tag-input.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
label, controlled tags/query and onQueryChange are required. Each tag has a stable id, submitted value, visible ReactNode label and accessibleLabel, with optional disabled removal. Consumers own filtering, validation, suggestions, persistence and every state mutation. Optional onRemoveTag enables 44px remove controls and empty-query Backspace removal of the last enabled tag; caller key prevention and IME composition suppress it. Optional suggestions are native 44px buttons whose supplied click runs before onSelect and may prevent it; no combobox behavior is claimed. Optional name/form render one hidden successful control per selected tag; disabled excludes them while readOnly keeps them submitted. maxTags disables additions but does not mutate caller tags. Description/error/status and external input aria-describedby compose. Native root/input attributes and refs remain available; inputProps excludes value/defaultValue/name/id/type/disabled/readOnly/form/aria-disabled because the component owns those contracts. The component performs no request, routing, storage, analytics, tag creation or persistence.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.