Form Mention Input
Comment box where typing @ opens a list of people to mention.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this block
What it's for
- Comment box where typing @ opens a list of people to mention.
- Textarea with @ and # triggers for users and topics with autocomplete.
- Mention input that stores a serialized value with user ids.
For the field only collects a list of values, use Form Tag Input.
Includes
- At mention
- Hash topic
- Multi trigger
- Autocomplete listbox
- Token chips
- Token range tracking
- Serialized value
- Keyboard navigation
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19 and Tailwind CSS 4 in Next.js (App Router), Vite, React Router or TanStack Start, installed with the agentic-ui or shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add form-mention-inputInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/form-mention-inputUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- npm packages
lucide-react- Registry dependencies
lib-primitives- Files
4 files
- components/agentic-ui/form-mention-input/form-mention-input/form-mention-input.tsx
- components/agentic-ui/form-mention-input/form-mention-input/use-mention-field.ts
- components/agentic-ui/form-mention-input/form-mention-input/mention-model.ts
- components/agentic-ui/form-mention-input/form-mention-input/mention-parts.tsx
Related components
Form Async Combobox
Multiple assignment of reviewers with avatars, roles and teams in issue management.
Details and live previewForm Color Picker
Color picker with a swatch button that opens a popover with a saturation area and hue slider.
Details and live previewForm Date Range Picker
Filter conversion and traffic metrics in analytics panels.
Details and live previewForm Field Array
Invoice lines with quantity, unit price and tax.
Details and live preview