AI & Agents
Mention Picker
The @ picker for adding context to a prompt: files, people and channels in groups.
Usage
Files
tabs.tsxpackages/react/src/components/ui
use-roving-focus.tspackages/react/src/hooks
People
JWJonas WeberDesigner
MKMara KleinEngineer
Channels
#design-system42 members
#releases18 members
Installation
npm install @wunderui/reactThen import what you need:
import { MentionPicker } from "@wunderui/react"Examples
Default
Grouped results; the first match is selected.
Files
tabs.tsxpackages/react/src/components/ui
use-roving-focus.tspackages/react/src/hooks
People
JWJonas WeberDesigner
MKMara KleinEngineer
Channels
#design-system42 members
#releases18 members
In context
How the component is used inside real screens — the same compositions as the Usage section of the Figma page.
Mention context
Typing @ opens the picker; a chosen file, person or channel becomes a removable pill above the prompt.
Files
tabs.tsxpackages/react/src/components/ui
use-roving-focus.tspackages/react/src/hooks
People
JWJonas WeberDesigner
MKMara KleinEngineer
Channels
#design-system42 members
#releases18 members
tabs.tsx#design-system
⌘↵
API Reference
| Prop | Type | Default |
|---|---|---|
| groups | { heading: string; items: MentionItem[] }[] | — |
| query | string | "" |
| activeId / onActiveIdChange | string / (id: string) => void | first match |
| onSelect | (item: MentionItem) => void | — |