Components
111 components. Press ⌘K or Ctrl+K to search.
Foundations
Layout
Keeps media at a fixed ratio (16:9 default).
ContainerCentered page container with max width and responsive side padding.
GridCSS grid with N equal columns or auto-fill by `min` width.
HeadingSemantic heading (h1–h6) mapped to the type ramp.
ScrollAreaScrollable region with thin themed scrollbar, keyboard focusable.
StackFlex stack with token gaps (gap={4} = 16px).
TextParagraph/inline text with type-ramp size and tone (secondary, accent, danger, success).
Actions
Capsule button in five styles and three sizes, with optional icons and a loading state.
ButtonGroupGroups related buttons; `attached` joins them into one capsule.
CopyButtonIcon button that copies text to the clipboard and confirms with a check.
IconButtonRound icon-only button, 44px by default (32 / 56 for sm / lg).
ToggleTwo-state button (bold, mute, pin).
ToggleGroupRow of toggles; single or multiple selection (text alignment, view mode, formatting).
Selection
Checkbox with checked, unchecked and indeterminate states, plus required, hint and visible error.
ChipFilter chip: toggles a filter on or off, or shows a removable applied filter.
RadioSingle radio input. Prefer RadioGroup.
RadioGroupSingle choice from a short list, as a fieldset of radios; supports required, hint and error.
RatingStar rating input or read-only display.
SegmentedControlPill-shaped switcher between 2–5 views or modes.
SwitchOn/off switch for settings that apply immediately; supports required, hint and error.
Adjust
Linear progress, determinate or indeterminate (omit `value`).
ProgressRingCircular progress for compact spaces.
SliderCustom slider (no native range): pointer drag, keyboard (arrows, Page, Home/End), single value or range, value tooltip.
SpinnerIndeterminate loading spinner.
StepperMinus/plus control for small integer adjustments.
Forms
Combobox: type to filter suggestions (or fetch them with onSearch + loading), match highlighted, keyboard navigation, free text allowed.
CalendarInline month calendar (single or range).
ColorPickerSwatch grid plus hex field.
CurrencyInputMoney amount with the currency symbol, locale grouping (12,00,000 in en-IN), and an attached currency code.
DatePickerDate or date-range field that opens a calendar popover.
FieldLabel + control + hint/error wrapper; adds a required asterisk or an (optional) marker.
FileItemOne uploaded or uploading file with type tag, progress or size, and remove.
FileUploadClick-or-drop zone with a visible label, custom title, hint, sizes and error; pair with FileItem rows.
FormForm recipe: grid layout, sections, required fields, inline validation on blur, error summary, submit with loading. Includes useForm(), FormRow and FormSection.
InputOTPOne-time code: N boxes, auto-advance, paste fills all, onComplete when full.
MultiSelectSelect preset with multiple=true, search and clear: chips in the trigger, checkboxes in the list.
NumberInputNumeric field with design +/− buttons, arrow-key stepping, min/max clamp, prefix/suffix.
PasswordFieldTextField preset for passwords: lock icon, show/hide toggle, optional strength meter.
PhoneInputPhone number with a searchable country-code dropdown (search by country or +code) and a tel input.
SearchFieldPill search input that can hold search tags (tokens); Enter turns the text into a tag, Backspace removes the last one.
SelectDesign dropdown (no native select): single or multiple, optional search box, groups, icons, descriptions, clearable, keyboard support.
TagInputMulti-value input: type and press Enter or comma to add tags, Backspace to remove; optional suggestions, max and allowCustom.
TextFieldLabelled input with prefix/suffix, attached add-ons, password reveal, strength meter, clear button, sizes and validation states.
TextareaMulti-line input with sizes, required/optional, error and character count.
TimePickerTime slot dropdown built on Select (searchable), 12h or 24h, configurable step and hours.
Display
Expandable sections for FAQs and grouped settings.
AvatarRound avatar: image or initials on a fruit color derived from the name.
AvatarGroupOverlapping avatars with a +N overflow.
BadgeSmall status label; tone pairs color with a word.
CardContent container on surface with optional title, subtitle and header actions.
CarouselSlides with prev/next glass buttons and dots; keyboard and screen-reader labelled.
CollapsibleSingle show/hide section.
CountBadgeRed numeric badge for unread counts.
Divider1px hairline separator.
KbdKeycap for keyboard shortcuts.
ListInset grouped list with optional header and footer; holds ListRow items.
ListRowOne list row: icon tile, title, subtitle, value, trailing control, chevron.
StatTileKPI tile: label, big tabular value, delta badge with arrow, footnote.
Data
Charts
Grouped or stacked bars on one axis with hover tooltip, legend (2+ series) and a table view.
DonutChartPart-to-whole for ≤5 slices with center total, hover detail and % legend.
LineChartTrend over time: 2px lines, crosshair + tooltip on hover, optional area for one series, table view.
SparklineTiny inline trend line for tables and stat tiles.
Feedback
Page-level persistent message across the top of a page or section.
CalloutInline tinted message in the page flow: info, success, warning, danger.
EmptyStateWhat's missing and one action to fix it.
SkeletonShimmering placeholder that matches the layout it replaces.
ToastTransient confirmation with optional action (Undo) and dismiss. Use via Toaster + toast().
ToasterToast region (bottom-right). Pair with the `toast()` function.
Overlays
⌘K command menu: search, grouped results, keyboard first.
ConfirmDialogAlert dialog that confirms an action; `tone="danger"` for destructive ones.
ContextMenuRight-click menu on any area; same items API as Menu.
DrawerSide sheet for details and edits without leaving the page; bottom sheet on phones.
HoverCardPreview card on hover/focus of a link or avatar.
MenuDropdown or context menu on strong glass; keyboard navigable.
ModalDialog for focused tasks: header, scrollable body, footer. Traps focus; Esc and scrim close it.
PopoverFloating panel anchored to a trigger for rich, interactive content.
TooltipShort inverted text hint on hover/focus. Never interactive.
Agentic
Task plan with progress bar and step timeline that updates as the agent works.
AgentStatusStatus dot + word for an agent or run: idle, thinking, running, waiting, done, error.
ApprovalCardHuman-in-the-loop request: what the agent wants to do, risk level, details, Deny / Always allow / Allow once.
ArtifactPanelSide panel for an agent's output (document, code, preview) with tabs and actions.
AttachmentChipFile attached to a prompt or message, with type tag, name, size and remove.
ChatMessageOne chat turn: user bubble on the right, assistant text on the left with avatar, attachments and actions.
CitationInline numbered citation marker linking to a source.
ConversationListSidebar list of chats or agent runs, grouped by date, with live status.
DiffViewUnified diff of a proposed code change with +/− counts.
MessageActionsCopy, thumbs up/down and regenerate under an assistant reply.
ModelPickerCompact select for choosing a model or agent.
PromptInputAuto-growing composer: Enter sends, Shift+Enter new line, attach, tools, model slot, send/stop.
ReasoningCollapsible “Thinking…” / “Thought for 8s” disclosure for model reasoning.
SourceListNumbered source pills for grounded answers; pair with inline Citation markers.
SuggestionChipsStarter prompts shown before the first message.
TokenMeterContext/usage meter that turns orange above 70% and red above 90%.
ToolCallCollapsible card for one tool/function call: name, summary, status, duration, input and output.
TypingIndicatorThree pulsing dots while the assistant prepares a reply.