AI Context Picker
Context bar above an AI chat composer: attach specs, error screenshots and links before sending.
About this block
What it's for
- Context bar above an AI chat composer: attach specs, error screenshots and links before sending.
- Code assistant that mentions project @repos, @issues and @tables as prompt context.
- Knowledge base copilot where the user drops PDFs or pastes documentation URLs.
For generic file upload with byte progress and resume, use Form File Upload. For editing the prompt with typed variables is needed, use Prompt Editor Variables. For global entity search outside a prompt flow, use Search Global Palette.
Includes
- Entity mentions
- File attach
- Image attach
- Url attach
- Drag and drop
- Paste files
- File validation
- Async processing with retry
Works with
- Radix UI primitives (the registry variant it ships in)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the 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 add ai-context-pickernpx shadcn@4.17.0 add @agentic-ui/ai-context-pickerUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- npm packages
- None beyond your project's React and Next.js
- Registry dependencies
lib-primitives- Files
1 file
- components/agentic-ui/ai-context-picker/index.tsx
Related components
AI Action Confirmation
Operations agent that asks to drop production tables and shows the rows, size and last use of each one.
Details and live previewAI Agent Memory Viewer
Assistant settings where the user reviews and corrects what the agent knows about them (time zone, style preferences).
Details and live previewAI Agent Status Badge
Header of an agent run that moves from working to waiting-approval and opens the approval on click.
Details and live previewAI Chat Empty State
Assistant chat with no messages that offers four starting points configured by the workspace.
Details and live preview