Overview
Every component and hook, grouped by category, with a preview, a short description and a link to each page.
layout
- App shellThe frame of an app: skip link, navbar, sidebar, main and aside in one responsive grid.
- Aspect ratioKeep media or a placeholder at a fixed width-to-height ratio.
- BoxA div with padding and a thin border mapped to the spacing tokens.
- ContainerCentre content in a column with a sensible maximum width and side padding.
- Direction providerSets the reading direction (ltr or rtl) once for every Radix-based component below it.
- FlexA flex container with direction, wrap, align, justify, gap and an inline form. Stack covers the common case.
- GridA responsive grid of equal columns with one gap.
- Overflow listA row of items that shows as many as fit and puts the rest in a '+N' menu.
- Page headerThe top of a page: breadcrumbs, title, description and actions.
- ResizablePanels separated by handles you drag or move with the keyboard.
- Scroll areaA scrollable region with thin, themed scrollbars.
- SeparatorA thin rule between groups.
- StackLay children out in a column or row with one gap from the spacing scale.
- Theme providerSet and save the theme, accent, font, corners, density and direction from React with useTheme(), and avoid the first-paint flash with themeScript().
typography
buttons
- ButtonTriggers an action. Native button with solid, line, ghost and danger variants.
- Button groupJoin related buttons into one segmented bar.
- Copy buttonA button that copies a value to the clipboard, shows 'Copied' for a moment and announces it.
- Icon buttonA square button holding only an icon. The accessible name is required.
- Segmented controlPick exactly one option from a short row, shown as joined segments.
- ToggleA button that stays pressed or not.
- Toggle groupA row of toggles where one or several can be on.
- ToolbarA row of related controls that share one tab stop and arrow-key movement.
forms
- AutocompleteA text field that suggests values while you type and accepts anything you enter.
- CalendarA month grid for picking one date.
- CheckboxA box to turn one choice on or off, with an indeterminate state.
- Color pickerChoose a colour from preset swatches, the native colour control, or a hex value.
- ComboboxType to filter a list and pick one option.
- Date pickerA button that opens a calendar and shows the chosen date.
- Date range pickerA button that opens a range calendar and two typed date fields.
- FieldConnects a label, a control, a hint and an error with the right ids and ARIA.
- FieldsetGroup related controls under one legend.
- File uploadChoose files by browsing or dropping them, and see what is selected.
- FormA form wrapper with a submit helper, an error summary that links to invalid fields, and an actions footer.
- InputA single-line text field.
- LabelThe visible name of a form control.
- Multi selectType to filter a list and pick several options, shown as removable tags.
- Native selectThe browser select, styled. Best on mobile and for long simple lists.
- Number inputA numeric field with decrease and increase buttons.
- OTP inputEnter a one-time code, one digit per box, with paste support.
- Password inputA password field with a show/hide toggle.
- Radio groupPick exactly one option from a short list.
- Range calendarA month grid for picking a start and an end date.
- RatingPick or show a score from 1 to a maximum, as stars.
- SelectPick one value from a list of five or more options.
- SliderPick a number, or a range, by dragging or with the keyboard.
- SwitchAn on/off setting that takes effect immediately.
- Tags inputType text and press Enter or comma to add it as a removable tag.
- TextareaA multi-line text field.
- Time fieldHour, minute and AM/PM segments you step with arrow keys or type into.
- Time pickerPick a time of day with hour, minute and AM/PM segments, using the browser's own control.
- Tree selectA select whose options are a nested tree, with search and single or multiple selection.
data display
- AccordionStacked headings that each show or hide a section.
- Area chartA line chart filled down to zero, optionally stacked to show a running total.
- AvatarA person or thing as an image with an initials fallback.
- Avatar groupOverlap several avatars and show how many more there are.
- BadgeA short status word or count.
- Bar chartCompare values across categories with vertical or horizontal bars, grouped or stacked.
- CardA bordered group for one thing you can pick up or open.
- CarouselA row of slides you scroll or step through with buttons.
- Code blockA block of code with a copy button.
- CollapsibleShow or hide one region of content from a trigger.
- Data gridA virtualised, keyboard-navigable grid for very large data sets, with sortable columns and row selection.
- Data tableA table with sortable columns, row selection and pagination.
- Description listLabel and value pairs, like the details of a record.
- ImageAn image with required alt text, a ratio, and a fallback when it fails to load.
- Image galleryA thumbnail grid that opens a lightbox with previous and next.
- Line chartShow how one or more values change across an ordered axis, with straight or stepped lines.
- Pie chartParts of a whole as a pie, or a donut with innerRadius.
- Sortable listA list the user reorders by dragging a handle or with the keyboard, with live announcements.
- SparklineA tiny inline trend line for a table cell or a sentence.
- StatOne number with its label and a note.
- TableRows and columns of data with a header, in a horizontally scrolling wrapper.
- TagA short label, optionally removable.
- TimelineA vertical list of events with times, joined by a rule.
- TreeA nested list of items that open and close, with one selected item.
- Virtual listA windowed list for thousands of rows: only the rows in view are in the page.
feedback
- AlertA message that stays on screen, with a title and a tone.
- Empty stateSay that there is nothing here yet and offer the next step.
- Notification centerA bell button with an unread count that opens a list of notifications, with mark read, clear and an empty state.
- ProgressHow far along a task is, or that it is still working.
- SkeletonA still placeholder shaped like the content that is loading.
- SpinnerA small indicator that something is loading.
- ToastA short message that appears briefly and does not block the page.
- ToasterShow a toast from anywhere with toast('Saved'). Mount one Toaster; call toast.success, toast.error or toast.promise from handlers.
overlays
- Alert dialogA modal that interrupts to confirm a destructive or irreversible action.
- CommandA searchable palette of actions that opens over the page, with an optional global shortcut.
- Context menuA menu of actions opened by right click or long press on an area.
- DialogA modal window for a question or short task that blocks the page.
- DrawerA panel that slides in from an edge for secondary tasks, details or navigation.
- Dropdown menuA list of actions that opens from a button.
- Hover cardPreview extra content when a link or element is hovered or focused.
- PopoverA floating panel of content or controls anchored to a button.
- TooltipShort hint text on hover and keyboard focus.
- TourA guided walkthrough: a spotlight on one element at a time with a card and Next, Back and Skip.
navigation
- BreadcrumbThe path to the current page.
- Breadcrumbs from pathA breadcrumb built from the current URL path.
- MenubarA horizontal bar of menus, like File, Edit and View in a desktop app.
- NavbarA top bar with brand, links and an actions slot; links move into a drawer on small screens.
- Navigation menuSite navigation with links and menus that open panels of links.
- PaginationMove between pages of results.
- SidebarA collapsible navigation sidebar with groups, icons and a mobile drawer.
- StepperShow progress through a numbered sequence of steps.
- TabsSwitch between related views in the same place.
effects
- Animated listA list whose items enter one by one without shifting the layout.
- Bento gridA responsive asymmetric grid of cards with column and row spans.
- Border beamA thin bordered box with a light that travels around its edge. CSS only.
- ConfettiA short burst of square confetti on a canvas, triggered by a prop or a ref method.
- Dot patternA decorative dot grid background drawn in SVG with currentColor.
- Grid patternA decorative line grid background drawn in SVG with currentColor.
- MarqueeScroll a row of items endlessly; pauses on hover and stops for reduced motion.
- Number tickerCount up to a number when it scrolls into view. Shows the final value at once for reduced motion.
- Orbiting circlesSmall items circling a centre. Decorative.
- Rolling numberA number whose digits roll to the new value when it changes. Screen readers read the final value.
- Scroll progressA thin bar fixed to the top of the window that fills as the page scrolls.
- Shimmer buttonThe Button with a light sweep across it. Still a native button.
- SpotlightA surface with a soft highlight that follows the pointer.
- Text revealFade a sentence in word by word. Static for reduced motion.
- TypewriterType a string one character at a time. Static for reduced motion.
blocks
- Call to action blockA closing call to action with one sentence and one next step.
- Dashboard shell blockApp frame with sidebar, top bar and content that collapses to a drawer on small screens.
- Empty page blockA full-page message for not found, nothing yet or no access.
- Feature grid blockA section title above a responsive grid of short features.
- Footer blockA site footer with brand, link columns and small print.
- Hero blockA page opener with eyebrow, title, description, actions and optional media.
- Login blockEmail and password sign-in form with validation messages.
- Pricing blockPlan cards with a monthly and yearly switch.
- Settings form blockSettings sections of switches and selects, each in a fieldset.
- Sign-up blockName, email and password account form with validation messages.
- Testimonials blockQuotes with their authors, as figures with blockquotes.
hooks
- useClickOutsideCalls a function when a pointer goes down outside an element, to close menus and popovers.
- useClipboardCopy text with the Clipboard API, with a copied flag that resets after a delay and an error when it fails.
- useControllableStateThe value, defaultValue and onChange pattern for custom components that can be controlled or uncontrolled.
- useCounterA number with increment, decrement, set and reset, bounded by optional min and max.
- useDebounceDebounced value and debounced callback: wait for input to settle before acting.
- useDisclosureOpen and closed state with open, close and toggle functions, and callbacks when it changes.
- useDocumentTitleSet document.title while a component is mounted, then restore it.
- useFocusTrapKeeps Tab focus inside an element while it is active, and returns focus when it closes.
- useHashRead and set location.hash as state.
- useHotkeysKeyboard shortcuts such as mod+k or escape, ignored while typing in fields unless allowed.
- useHoverTrack whether the pointer is over an element.
- useIntersectionKnow whether an element is in view, with an IntersectionObserver.
- useIntervalCalls a function on a timer, with a null delay to pause it. Cleared on unmount.
- useLocalStorageA JSON value kept in localStorage, shaped like useState, that stays in sync across tabs.
- useLongPressCall a handler when an element is held down, cancelling if the pointer moves or lifts early.
- useMediaQueryWhether a CSS media query matches, updated live, and safe to render on the server.
- useMountedTrue after the first client render. Use it to avoid server and client markup differences.
- usePreviousThe value from the previous render, for comparing a change.
- useReducedMotionWhether the user has asked the system to reduce motion, for skipping or simplifying animation in code.
- useScrollSpyFind which section is currently in view, for a table of contents or sticky nav.
- useTimeoutRun a callback after a delay, with start and clear controls.
- useToggleCycle through a list of values, or flip a boolean.
- useWindowEventAdd a typed window event listener that is removed on unmount.