Skip to content

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.

76 componentsMITshadcn registry

Foundations

Surface

2 variants

Shell, Panel, Inset, IconTile and ShellHeader — the borderless layers every component is framed with.

Foundations

Action Button

2 variants

Silver primary, secondary, quiet and danger buttons in two sizes, with icons, loading and icon-only buttons.

Foundations

Choice Controls

2 variants

Switch, borderless Checkbox with a mixed state, and a RadioGroup with arrow-key navigation.

Foundations

Status Pill

2 variants

Tinted status pills in five tones with icon or dot, plus a mono Tag for models, branches and transports.

Foundations

Segmented Control

2 variants

Radio-style segmented switch with a sliding active pill that jumps instantly from the keyboard.

Foundations

Progress Bar

2 variants

Progress and meter bars in five tones with optional stripes, plus a stacked SegmentedBar.

Foundations

Rolling Number

2 variants

Odometer-style number: each digit rolls to its new value, units and separators stay put.

Foundations

Text Field

2 variants

Borderless TextField, SearchField with clear and TextArea, with label, description and error wiring.

Foundations

Tooltip

2 variants

Hint anchored to its trigger: scales in from the trigger side, opens instantly once one is warm.

Foundations

Action Menu

2 variants

Dropdown and right-click menus — items with icons and shortcuts, submenus, checkable items and a destructive group.

Foundations

Popover Panel

2 variants

A panel anchored to its trigger — grows from it, closes on outside click or Esc, keeps focus inside.

Foundations

Modal Sheet

2 variants

Centered dialog and edge sheet (drawer) — focus trap, scroll lock, Esc and backdrop to close.

Foundations

Toast Stack

2 variants

Notifications that stack, expand on hover, pause while hovered, swipe or click to dismiss, with actions.

Foundations

Select Field

2 variants

Select and searchable combobox — options with icons and hints, groups, keyboard typeahead.

Foundations

Tab Panels

2 variants

Tabs with panels — sliding indicator, keyboard navigation, lazy panels and counts.

Foundations

Disclosure

2 variants

Accordion and single collapsible sections with smooth height animation.

Foundations

Agent Avatar

2 variants

Avatars for agents and people — initials or image, presence and activity state, stacked groups.

Foundations

Loading Skeleton

2 variants

Placeholders for answers, lists and cards while they load.

Foundations

Range Slider

2 variants

Single and range sliders with steps, marks and value labels — for temperature, length, budgets.

Foundations

Key Hint

2 variants

Keyboard shortcut hints that adapt to the platform — Cmd on Mac, Ctrl elsewhere.

Foundations

Loader

2 variants

Spinner and thinking indicators in a few sizes, with an accessible label.

Foundations

Empty State

2 variants

Empty, no-results and error states with an icon, message and actions.

Foundations

Date Field

2 variants

Calendar and date picker — month grid, ranges, keyboard navigation and min / max.

Foundations

Drop Zone

2 variants

Drag-and-drop file target for a chat — accepts types and size limits, shows why a file was rejected.

Foundations

Screens

Conversation

Streaming Message

3 variants

Assistant message with token streaming, collapsible reasoning, citation chips and copy / retry actions.

Conversation

Agent Status

2 variants

Live activity line for a working agent — current step, rotating detail, elapsed time and a stop action.

Conversation

Message Branches

2 variants

Switch between regenerated answers and edited prompts — arrows, a mini branch map, and direction-aware swaps.

Conversation

Response Feedback

2 variants

Thumbs 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 variants

Prompt input with Ask / Plan / Act modes, a context tray with token counts and messages that queue while the agent works.

Conversation

Agent Question

2 variants

Agent asks with choice cards, marks its own suggestion and reason, and accepts a pick, several picks or free text.

Conversation

Chat Thread

2 variants

The conversation itself — user and assistant turns, grouping, date dividers, unread marker and a jump-to-latest pill.

Conversation

User Message

2 variants

A sent prompt with attachments, edit-in-place and resend, copy, and a delivery state.

Conversation

Conversation List

2 variants

Chat history for a sidebar — search, pinned and dated groups, rename inline, archive and delete with undo.

Conversation

Prompt Suggestions

2 variants

Starter prompts for an empty chat and follow-up chips under an answer.

Conversation

Attachment Preview

2 variants

Images and files attached to a prompt — thumbnails, type and size, upload progress, retry and remove.

Conversation

Code Block

2 variants

Code in an answer — filename, language, line numbers, wrap toggle, copy and collapse for long snippets.

Conversation

Source List

2 variants

Citations behind an answer — numbered footnotes with hover previews and a panel of every source used.

Conversation

Tools & Approvals

Interactive Answers

Chart Card

4 variants

A chart the agent answers with — bar, line, area or donut, with tooltips, legend toggles and animated data.

Interactive Answers

Dot Histogram

2 variants

A 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 variants

A 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 variants

Rows 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 variants

A 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 variants

A fit field — candidates, bots or options placed by score around a centre, grouped into sectors, with threshold rings.

Interactive Answers

Radar Chart

2 variants

Scores 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 variants

Stacked daily columns with one series hanging below zero on its own scale — triaged vs escalated, solved vs handed off.

Interactive Answers

Blast Radius

2 variants

What a key, agent or tool can reach, hop by hop around a centre, with the affected paths in red.

Interactive Answers

Iso Bars

2 variants

Isometric stacked bars in two rows — the main volume behind, rework or failures in front.

Interactive Answers

Hex Density

2 variants

A density map of two measures in hexagons, split by a threshold line — retrieved vs dropped, fast vs slow.

Interactive Answers

Data Table

2 variants

Tabular results — sortable columns, filter, pagination, row selection and copy as CSV.

Interactive Answers

Stat Grid

2 variants

KPI cards with rolling numbers, deltas and sparklines for a quick summary answer.

Interactive Answers

Form Card

2 variants

A form the agent asks the user to fill — fields, selects, validation and a submitted state.

Interactive Answers

Result Carousel

2 variants

A row of result cards — image, title, meta and an action — with snap scrolling and arrows.

Interactive Answers

Slot Picker

2 variants

Pick a time the agent proposed — days, free slots, time zone and a confirm step.

Interactive Answers

Confirmation Card

2 variants

A summary of what the agent is about to do — line items, totals and confirm or edit before it acts.

Interactive Answers

JSON Viewer

2 variants

Structured output as a collapsible tree — types, counts, search, copy path and copy value.

Interactive Answers

Artifact Panel

2 variants

A side canvas for what the agent made — live preview and source tabs, version history and download.

Interactive Answers

Planning & Execution

Observability

Settings & Usage