Skip to contents
Interfaces DS
Landing Page

React component directory

Find React components for forms, navigation, overlays, data display and AI chat. Compare related controls, try interactive examples and read each component’s API.

On this page

AI components

Pair Conversation and Message for the chat history. Add Prompt Input for the composer, Tool for tool results, and Confirmation when an action needs approval.

Build a streaming chat with the AI SDK

Actions

Use a Button for a one-time action and a Toggle for a choice that stays pressed.

Forms

Use Checkbox for independent choices, Radio Group for one visible choice, and Select when the list of options needs more room.

Use Tabs to switch views within a page, Breadcrumb to show a page’s location, and Pagination to move through a result set.

Overlays

Use Tooltip for a short hint, Popover for optional controls, and Dialog for a task that needs its own focus.

Layout

Choose Accordion for related expandable sections, Collapsible for a single disclosure, or Resizable when readers should control panel widths.

Data display

Use Table to compare exact values, Chart to show a trend, and Code Block for a command or snippet readers can copy.

Feedback

Use Alert for a message that should stay visible, Sonner for a brief notification, and Progress when you can measure how much work is complete.

Getting started

Handbook

UI for Agents