AI & Agents
Context Pill
A removable chip for what the prompt refers to: a file, a person, a channel or a link.
Usage
tabs.tsxJWJonas Weber#design-systemwunderui.com/docs
Installation
npm install @wunderui/reactThen import what you need:
import { ContextPill } from "@wunderui/react"Examples
File
A file from the repository.
tabs.tsx
Person
Someone the agent should keep in the loop.
JWJonas Weber
Channel
A channel to read from or post to.
#design-system
Link
A page to read.
wunderui.com/docs
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 |
|---|---|---|
| kind | "file" | "person" | "channel" | "link" | — |
| label | string | — |
| initials / color | string / AvatarColor | "orange" |
| onRemove | () => void | no remove button |