Skip to content

Components

71 components, each with live examples, the code behind them, its API and accessibility notes. Pick one to see every variant.

Primitives (16)

The smallest pieces. Everything else is built out of these, so they carry the most weight per line.

  • Button

    Intent and emphasis as separate axes, in four sizes.

    15 examples

  • Button group

    Joins adjacent buttons into one control.

    9 examples

  • Badge

    Six colors across the four-step state scale.

    13 examples

  • Avatar

    Four sizes and a presence dot driven by the state scale.

    15 examples

  • Kbd

    A keyboard key, and a group of them.

    5 examples

  • Separator

    A rule in either orientation, hidden from assistive tech by default.

    6 examples

  • Skeleton

    A loading placeholder that holds the layout still.

    3 examples

  • Spinner

    An indeterminate loading indicator with a live region label.

    6 examples

  • Aspect ratio

    Reserves space so media cannot shift the page as it loads.

    4 examples

  • Toggle

    A two-state button.

    6 examples

  • Toggle group

    Single or multiple selection across a set of toggles.

    5 examples

  • Tag

    A compact label with an optional dot, avatar, count, checkbox or remove button.

    5 examples

  • Badge group

    A pill that pairs a short badge with a message, optionally as a link.

    5 examples

  • Featured icon

    An icon in a decorative container: four treatments, two shapes, four sizes.

    5 examples

  • Item

    Media, text and actions in a row. The shape lists and menus converge on.

    4 examples

  • Direction

    Provider that tells every Radix primitive below it which way text runs.

    3 examples

Forms (18)

Anything that collects input. These share one focus treatment and one invalid state, which is what keeps a long form from looking assembled by three people.

  • Input

    A text field with hover, focus, disabled and invalid states.

    12 examples

  • Input group

    An input with affixes, where the focus ring wraps the whole group.

    6 examples

  • Input OTP

    One-time code entry, with paste across slots handled.

    7 examples

  • Textarea

    A multi-line field that grows with its content.

    6 examples

  • Label

    An accessible label built on Radix Label.

    6 examples

  • Field

    The label, control, hint and error wrapper every control shares.

    5 examples

  • Form

    React Hook Form bindings that keep aria-describedby and aria-invalid correct.

    2 examples

  • Checkbox

    Checked, unchecked and indeterminate.

    9 examples

  • Select

    The Radix select, with groups, separators and scroll buttons.

    10 examples

  • Native select

    The platform picker, styled. Better than a rebuilt one on a phone.

    5 examples

  • Combobox

    A searchable select, composed from Popover and Command.

    6 examples

  • Switch

    An instant-effect toggle that uses the shared elevation token.

    8 examples

  • Slider

    One or several thumbs, horizontal or vertical.

    6 examples

  • Calendar

    Date selection built on React DayPicker.

    6 examples

  • Rating

    A star rating to display, and a radio-based input to choose one.

    5 examples

  • File upload

    A keyboard-ready dropzone with validation, and a file list with progress.

    4 examples

  • Date picker

    A single date or a range from a calendar popup, with locale-aware trigger text.

    6 examples

Overlays (11)

Anything that floats above the page. All of them delegate focus trapping, escape handling and scroll locking to Radix rather than reimplementing it.

  • Dialog

    A modal built on Radix Dialog.

    3 examples

  • Alert dialog

    A decision dialog with explicit cancel and action controls; Escape dismisses.

    3 examples

  • Sheet

    A dialog anchored to an edge of the screen.

    3 examples

  • Drawer

    A bottom sheet with drag-to-dismiss, built on Vaul.

    3 examples

  • Popover

    Floating content anchored to a trigger.

    3 examples

  • Hover card

    A supplemental link preview that opens on pointer hover or trigger focus.

    3 examples

  • Tooltip

    A short label on hover or focus.

    7 examples

  • Dropdown menu

    A menu from a button, with checkboxes, radios and submenus.

    3 examples

  • Context menu

    The same menu surface, opened by right click.

    3 examples

  • Menubar

    A persistent application menu bar.

    3 examples

  • Command

    A command palette built on cmdk.

    2 examples

Feedback (5)

Telling the user what happened. This is where the four-step state scale pays for itself.

  • Alert

    One status prop picks the fill, the border, the icon and the text.

    8 examples

  • Sonner

    Toasts styled with the design tokens in both schemes.

    3 examples

  • Progress

    A determinate progress bar.

    7 examples

  • Progress circle

    Determinate progress as a ring or half ring, with its value in the middle.

    5 examples

  • Empty

    The empty state, as a component rather than an improvisation per screen.

    4 examples

Data display (9)

Showing content that already exists, in a readable shape.

  • Card

    Header, content, action and footer slots.

    5 examples

  • Table

    A scrollable data table with a sticky-looking header row.

    3 examples

  • Data table

    Sorting, filtering, pagination, row selection and column visibility on TanStack Table.

    5 examples

  • Chart

    Recharts with a config object, so a series keeps one color everywhere.

    4 examples

  • Accordion

    A disclosure list built on Radix Accordion.

    4 examples

  • Carousel

    A slider built on Embla, horizontal or vertical.

    4 examples

  • Scroll area

    A scroll container with a consistent custom scrollbar.

    3 examples

  • Resizable

    Split panes the user can drag.

    4 examples

Conversation (7)

The pieces an assistant interface is made of. They are compositions of the primitives above, not a separate design language.

  • Message

    The row a conversation is made of: avatar, bubble and metadata.

    7 examples

  • Bubble

    The bubble itself. The variant paints the content, not the wrapper.

    9 examples

  • Message scroller

    A log that follows new content only while you are already at the end.

    3 examples

  • Attachment

    A file in a conversation, with its upload state on the row.

    7 examples

  • Marker

    A line that marks a position: a date, an unread divider.

    6 examples

  • Questionnaire

    A structured question with answers that are quicker to tap than to type.

    3 examples

  • Trace

    Visible progress steps, source details, and collapsible tool activity.

    3 examples

Utility hooks: use-inert-background, use-mobile

Complete screens live in blocks and charts.