Components
The UI layer for agent products
Copy-paste React components for agent chats, tool calls, approvals, plans, traces and usage. Every one is MIT licensed and installs with the shadcn CLI.
Foundations
Surface
2 variantsShell, Panel, Inset, IconTile and ShellHeader — the borderless layers every component is framed with.
Foundations
Action Button
2 variantsSilver primary, secondary, quiet and danger buttons in two sizes, with icons, loading and icon-only buttons.
Foundations
Choice Controls
2 variantsSwitch, borderless Checkbox with a mixed state, and a RadioGroup with arrow-key navigation.
Foundations
Status Pill
2 variantsTinted status pills in five tones with icon or dot, plus a mono Tag for models, branches and transports.
Foundations
Segmented Control
2 variantsRadio-style segmented switch with a sliding active pill that jumps instantly from the keyboard.
Foundations
Progress Bar
2 variantsProgress and meter bars in five tones with optional stripes, plus a stacked SegmentedBar.
Foundations
Rolling Number
2 variantsOdometer-style number: each digit rolls to its new value, units and separators stay put.
Foundations
Text Field
2 variantsBorderless TextField, SearchField with clear and TextArea, with label, description and error wiring.
Foundations
Tooltip
2 variantsHint anchored to its trigger: scales in from the trigger side, opens instantly once one is warm.
Foundations
Action Menu
2 variantsDropdown and right-click menus — items with icons and shortcuts, submenus, checkable items and a destructive group.
Foundations
Popover Panel
2 variantsA panel anchored to its trigger — grows from it, closes on outside click or Esc, keeps focus inside.
Foundations
Modal Sheet
2 variantsCentered dialog and edge sheet (drawer) — focus trap, scroll lock, Esc and backdrop to close.
Foundations
Toast Stack
2 variantsNotifications that stack, expand on hover, pause while hovered, swipe or click to dismiss, with actions.
Foundations
Select Field
2 variantsSelect and searchable combobox — options with icons and hints, groups, keyboard typeahead.
Foundations
Tab Panels
2 variantsTabs with panels — sliding indicator, keyboard navigation, lazy panels and counts.
Foundations
Disclosure
2 variantsAccordion and single collapsible sections with smooth height animation.
Foundations
Agent Avatar
2 variantsAvatars for agents and people — initials or image, presence and activity state, stacked groups.
Foundations
Loading Skeleton
2 variantsPlaceholders for answers, lists and cards while they load.
Foundations
Range Slider
2 variantsSingle and range sliders with steps, marks and value labels — for temperature, length, budgets.
Foundations
Key Hint
2 variantsKeyboard shortcut hints that adapt to the platform — Cmd on Mac, Ctrl elsewhere.
Foundations
Loader
2 variantsSpinner and thinking indicators in a few sizes, with an accessible label.
Foundations
Empty State
2 variantsEmpty, no-results and error states with an icon, message and actions.
Foundations
Date Field
2 variantsCalendar and date picker — month grid, ranges, keyboard navigation and min / max.
Foundations
Drop Zone
2 variantsDrag-and-drop file target for a chat — accepts types and size limits, shows why a file was rejected.
Foundations
Screens
AI Chat
ScreenA complete chat app screen — history sidebar, a thread with tool calls, cited answers and feedback, follow-up chips and a composer with a context meter.
Screens
Coding Agent
ScreenAn agent working in a repo — chat with plan and permission requests on one side, file changes, terminal and a live preview on the other.
Screens
Data Answer
ScreenAn analytics question answered with KPI cards, a chart and a table, plus follow-up questions to dig further.
Screens
Booking Assistant
ScreenAn assistant that acts — compares options, picks a time, fills a form and confirms before it books.
Screens
Agent Console
ScreenA team view of agents in production — background runs, a trace, eval results, usage and rate limits.
Screens
Support Widget
ScreenA support bot embedded on a website — launcher bubble, quick replies, order lookup, handoff to a human and a rating at the end.
Screens
Handoff Inbox
ScreenWhere people take over from the bot — escalated conversations by urgency, what the bot already did, reply and hand back.
Screens
Conversation
Streaming Message
3 variantsAssistant message with token streaming, collapsible reasoning, citation chips and copy / retry actions.
Conversation
Agent Status
2 variantsLive activity line for a working agent — current step, rotating detail, elapsed time and a stop action.
Conversation
Message Branches
2 variantsSwitch between regenerated answers and edited prompts — arrows, a mini branch map, and direction-aware swaps.
Conversation
Response Feedback
2 variantsThumbs up or down under an answer; a down vote opens reason chips and a note, then settles into a thank-you.
Conversation
Agent Composer
2 variantsPrompt input with Ask / Plan / Act modes, a context tray with token counts and messages that queue while the agent works.
Conversation
Agent Question
2 variantsAgent asks with choice cards, marks its own suggestion and reason, and accepts a pick, several picks or free text.
Conversation
Chat Thread
2 variantsThe conversation itself — user and assistant turns, grouping, date dividers, unread marker and a jump-to-latest pill.
Conversation
User Message
2 variantsA sent prompt with attachments, edit-in-place and resend, copy, and a delivery state.
Conversation
Conversation List
2 variantsChat history for a sidebar — search, pinned and dated groups, rename inline, archive and delete with undo.
Conversation
Prompt Suggestions
2 variantsStarter prompts for an empty chat and follow-up chips under an answer.
Conversation
Attachment Preview
2 variantsImages and files attached to a prompt — thumbnails, type and size, upload progress, retry and remove.
Conversation
Code Block
2 variantsCode in an answer — filename, language, line numbers, wrap toggle, copy and collapse for long snippets.
Conversation
Source List
2 variantsCitations behind an answer — numbered footnotes with hover previews and a panel of every source used.
Conversation
Tools & Approvals
Tool Approval Queue
2 variantsTriage pending tool calls by risk: select several, grant once, for the session or always, and undo from the resolved log.
Tools & Approvals
Tool Call Block
2 variantsInline chat card for a tool call: name, collapsible JSON args, status, duration and a result preview.
Tools & Approvals
File Changes
2 variantsSplit review: a file tree on one side, hunks on the other — keep or revert each hunk, then apply the result.
Tools & Approvals
Terminal Output
2 variantsStreaming command output with stdout / stderr lines, exit status, duration, copy and stop.
Tools & Approvals
MCP Servers
2 variantsConnected MCP servers with status, auth prompts and reconnect — expand one to switch individual tools on or off.
Tools & Approvals
Interactive Answers
Chart Card
4 variantsA chart the agent answers with — bar, line, area or donut, with tooltips, legend toggles and animated data.
Interactive Answers
Dot Histogram
2 variantsA distribution as stacked dots — every sample visible, median and p95 marked, samples past a limit such as a timeout flagged.
Interactive Answers
Tick Gauge
2 variantsA meter drawn as ticks around an arc, with a target marker and the shortfall to it in red — success rates, SLOs, budgets.
Interactive Answers
Mirror Strips
2 variantsRows of dot strips with two series mirrored around a line — compare rounds or weeks on one axis, with pinned columns and notes.
Interactive Answers
Radial Dots
2 variantsA cycle as rings of dots — hours of the day or days of the week, stacked by series, with the headline in the middle.
Interactive Answers
Match Field
2 variantsA fit field — candidates, bots or options placed by score around a centre, grouped into sectors, with threshold rings.
Interactive Answers
Radar Chart
2 variantsScores across several axes as a polygon, with a dashed bar to meet and each member's values as dots on the spokes.
Interactive Answers
Diverging Bars
2 variantsStacked daily columns with one series hanging below zero on its own scale — triaged vs escalated, solved vs handed off.
Interactive Answers
Blast Radius
2 variantsWhat a key, agent or tool can reach, hop by hop around a centre, with the affected paths in red.
Interactive Answers
Iso Bars
2 variantsIsometric stacked bars in two rows — the main volume behind, rework or failures in front.
Interactive Answers
Hex Density
2 variantsA density map of two measures in hexagons, split by a threshold line — retrieved vs dropped, fast vs slow.
Interactive Answers
Data Table
2 variantsTabular results — sortable columns, filter, pagination, row selection and copy as CSV.
Interactive Answers
Stat Grid
2 variantsKPI cards with rolling numbers, deltas and sparklines for a quick summary answer.
Interactive Answers
Form Card
2 variantsA form the agent asks the user to fill — fields, selects, validation and a submitted state.
Interactive Answers
Result Carousel
2 variantsA row of result cards — image, title, meta and an action — with snap scrolling and arrows.
Interactive Answers
Slot Picker
2 variantsPick a time the agent proposed — days, free slots, time zone and a confirm step.
Interactive Answers
Confirmation Card
2 variantsA summary of what the agent is about to do — line items, totals and confirm or edit before it acts.
Interactive Answers
JSON Viewer
2 variantsStructured output as a collapsible tree — types, counts, search, copy path and copy value.
Interactive Answers
Artifact Panel
2 variantsA side canvas for what the agent made — live preview and source tabs, version history and download.
Interactive Answers
Planning & Execution
Background Agents Panel
2 variantsAgents working in the background as a grid of live tiles or a compact dock that expands into the selected agent.
Planning & Execution
Checkpoint Timeline
2 variantsCheckpoints the agent made along the way — scrub through turns, see what changed, restore to any point.
Planning & Execution
Observability
Settings & Usage
Context Window Meter
3 variantsToken usage by segment — system, history, files, tools — with a near-limit warning and a compact action.
Settings & Usage
Memory Panel
2 variantsWhat the agent remembers about the user and project — search, scopes, inline edit and forget.
Settings & Usage
Usage Summary
2 variantsTokens and cost over time, split by model, against a monthly budget.
Settings & Usage
Rate Limits
2 variantsRequests and tokens per minute as refilling buckets, with a retry-after countdown and queued calls when throttled.
Settings & Usage