For AI agents: the documentation index is at /llms.txt, and any docs page is available as Markdown by appending .md to its URL.
Components
106 accessible components, each one command away.
- AccordionStacked sections that expand one at a time, or several at once.
- AlertA message that stays on the page, with an optional icon.
- Alert DialogA modal that asks the user to confirm or cancel; clicking outside does not dismiss it.
- ApprovalAn inline approve or deny prompt for an agent's pending action.
- Aspect RatioA box that keeps a width-to-height ratio, filled by its content.
- AttachmentA file chip with a thumbnail or icon and a remove button.
- AutocompleteA text input with suggestions; the value is whatever the user types.
- AvatarA person's picture, with initials while it loads or if it fails. Includes a status badge and overlapping groups.
- BadgeA short status or count label.
- BreadcrumbWhere the current page sits in the site's hierarchy.
- ButtonAn action trigger with default, outline, secondary, ghost, destructive, and link variants.
- Button GroupJoins related Buttons into one row that shares borders.
- CalendarA month grid for picking a single date, a range, or several dates, built on react-day-picker.
- CardA surface that groups related content.
- CarouselA slideshow built on Embla, composed from Root, Content, Item, Previous, and Next.
- ChartThe shared parts of every chart: frame, grid, axes, tooltip, and a legend that hides series.
- Area ChartAn area chart for trends over a range, with a soft fill under each line.
- Bar ChartA bar chart for comparing values across categories, grouped, stacked, or horizontal.
- Funnel ChartA funnel chart for drop-off through ordered steps.
- HeatmapA heatmap for intensity across two categories, as an accessible table of tinted cells.
- Line ChartA line chart for change over a range, with one or more series.
- Pie ChartA pie or donut chart for the parts of a whole, with an optional total in the middle.
- Radar ChartA radar chart for comparing a few series across the same axes.
- Radial ChartA radial chart for progress toward a goal, or a few values on concentric rings.
- Sankey ChartA sankey chart for flow between stages.
- Scatter ChartA scatter chart for how two measures relate, with optional dot size for a third.
- TreemapA treemap for sizes within a whole, as nested rectangles.
- CheckboxA checkbox with checked, unchecked, and indeterminate states.
- Checkbox GroupShares one array value between a set of Checkboxes, with optional select-all.
- CitationA superscript marker that links to its source and previews it on hover.
- Code BlockA code listing with a copy button; syntax highlighting loads on demand.
- CollapsibleA section that shows and hides its panel.
- Color pickerSwatches to choose from and a hex field for any other color.
- ComboboxPicks a value from a list you can filter by typing.
- CommandA searchable command list with groups, shortcuts, and an empty state, inline or in a dialog.
- ComposerThe message box for a chat: a text field that becomes a Tiptap editor on demand, file attachments, and send that turns into stop.
- Context MenuA menu opened by right-clicking or long-pressing an area.
- Copy buttonA ghost button that copies text and briefly shows a check, plus the useCopy hook.
- Data TableA TanStack Table data table with sorting, filtering, row selection, pagination, and column visibility, built on Table.
- Data Table VirtualA TanStack Table data table that scrolls and renders only the rows in view, for thousands of rows.
- Date PickerA button that opens a Calendar in a Popover to pick a date or a date range.
- DialogA modal window composed from Root, Trigger, Content, Header, Footer, Title, Description, and Close.
- DrawerA modal panel that slides in from any edge and can be swiped away. Set swipeDirection to right or left for a side sheet.
- Dropdown MenuA menu of actions opened from a button, with checkbox, radio, and submenu items.
- DropzoneA drop target for files with a picker, a drag overlay, and readable rejections.
- EditorA block editor on Tiptap: headings, lists, task lists, quotes, code, links, and highlights, styled for reading.
- Editor block handleA drag handle beside each block, with a menu to turn it into another kind, duplicate, or delete it.
- Editor bubble menuA floating toolbar over selected text: turn into, bold, italic, underline, strike, code, link, and highlight.
- Editor link popoverA button and form to add, change, open, and remove a link on the selected text.
- Editor suggestionThe generic suggestion menu behind mentions and commands: async items, keyboard control, and focus that stays in the document.
- Editor slash menuA searchable menu opened by typing / in a block, to insert headings, lists, quotes, code, and dividers.
- EmptyAn empty state with media, a title, a description, and actions.
- FieldGroups a control with its label, description, and error, and wires up accessibility and validation.
- FieldsetGroups related fields under a legend; disabling it disables every field inside.
- FormA form that validates its Fields together and focuses the first invalid one on submit.
- Hover CardA preview of a link's destination, shown while a pointer rests on the link.
- IconsThe icons Shelf components use, in one file you own. lucide-react by default; swap the imports to change libraries.
- InputA text input that takes part in a Field's label, description, and validation.
- Input GroupAn input with text, icons, or buttons attached inside its border.
- Input OTPA one-time code input with one slot per character and paste support.
- ItemA list row of media, a title, a description, and actions, that can render as a link.
- KbdA keyboard key.
- LabelA text label for a form control.
- MenubarA row of menus, as in a desktop app, with arrow-key movement between them.
- MessageOne turn in a conversation: unboxed assistant text, a user bubble, and hover actions.
- MeterA measurement within a known range, such as storage used.
- Native SelectThe browser's own select, styled to match Input and Select, with option groups.
- Navigation MenuSite navigation where items open panels of links in one shared surface.
- Number FieldA number input with step buttons, keyboard stepping, and locale-aware formatting.
- Number tickerA number that counts to its new value and reads out the final value for screen readers.
- PaginationLinks between the pages of a long list.
- PlanAn ordered list of steps with pending, active, and done states.
- PopoverRich, interactive content in a floating panel opened from a button.
- ProgressHow far along a task is, or that it is in progress.
- Radio GroupA set of options where exactly one can be chosen, with arrow-key navigation.
- RatingA star rating built as a radio group, or a read-only display of an average.
- ReasoningA collapsible 'Thinking' section that opens while the model reasons and folds when it finishes.
- ResizablePanels resized by dragging or the keyboard, composed from Group, Panel, and Handle.
- Scroll AreaA native scrolling region with thin, themed scrollbars.
- SelectPicks one value from a list of options.
- SeparatorA horizontal or vertical dividing line.
- ShimmerText with a soft highlight sweeping across it, for work in progress.
- SidebarAn app-shell sidebar that collapses offcanvas or to icons and becomes a sheet on small screens.
- SkeletonA placeholder shape while content loads.
- SliderA draggable input for a single value or a range.
- SourcesA collapsible 'Used N sources' list that only links to safe addresses.
- SparklineA tiny line with no axes, for a table cell or a stat.
- SpinnerA spinning loading indicator.
- StatA key figure with a label and its change since the last period.
- StepperProgress through a multi-step flow, with the current step marked for assistive technology.
- StreamStreamdown-style streaming markdown: only the growing block re-renders, and output is safe by default.
- SwitchAn on/off control that takes effect immediately.
- TableA semantic HTML table with Shelf styles.
- TabsSwitches between panels of related content.
- TextareaA multi-line text input that grows with its content and takes part in a Field.
- ThreadA conversation's scroll area: follows new messages, lets go when you scroll up, and brings you back with one button.
- Time pickerHours and minutes as number fields, with an AM/PM list in 12-hour mode.
- TimelineEvents in order, joined by a line, with a title, time, and description.
- ToastBrief notifications queued from anywhere in the app: stacked, swipeable, with success, error, and loading states.
- ToggleA two-state button with default and outline variants.
- Toggle GroupA set of Toggles sharing one value, with arrow-key navigation.
- Tool callOne tool invocation as a collapsible row with a state badge, the input, and the output or error.
- ToolbarA row of controls that is one Tab stop, with arrow-key movement.
- TooltipA short label shown on hover and keyboard focus.
- Tree viewA keyboard-navigable hierarchy with open and close branches and a single selection.
- TypographyProse styles for headings, paragraphs, lead text, quotes, lists, and inline code.