Skip to content
AI & AgentsPro

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

bash
npm install @wunderui/react

Then import what you need:

tsx
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

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.

tabs.tsxpackages/react/src/components/ui
use-roving-focus.tspackages/react/src/hooks
JWJonas WeberDesigner
MKMara KleinEngineer
#design-system42 members
#releases18 members
tabs.tsx#design-system

API Reference

PropTypeDefault
kind"file" | "person" | "channel" | "link"—
labelstring—
initials / colorstring / AvatarColor"orange"
onRemove() => voidno remove button