Components

71 React components from @usefragments/ui. Find the right building block, try it, and copy a working example.

New to the library? Install the package first. Then search by name or browse a category below. Each page brings together live examples, usage advice, installation, and the API reference.

71 components

Untitled UI

“Fragments UI is the most explicitly AI-native design system we've seen.”

Ranked 2nd of 22 by Untitled UIRead the article
Base UI

Listed by Base UI as a styled library built on Base UI

See the Base UI community page

Actions

Actions components
Name
Purpose
Status
ButtonTriggers an action — save, submit, delete, open.stable
ButtonGroupFuses two actions into one control, a split button, with one hairline between them.stable
IconButtonRuns an action or toggles state from an icon in toolbars and table rows.stable
ToggleGroupSelects among two to five options in a segmented control with a visible active choice.stable

Inputs

Inputs components
Name
Purpose
Status
CheckboxSelects options that take effect when a form is submitted.stable
ChipA compact value: a tag, a filter or an applied selection, in one untoned look.stable
ColorPickerSelects a color through a visual picker and hexadecimal input.stable
ComboboxFilters a list of options as the user types.stable
DatePickerSelects a date or date range from a calendar.stable
EditorEdits rich text with formatting, autosave, and a word count.stable
FieldOwns the label, description and error for one form control.stable
FieldsetGroups related form controls under an accessible legend, on a surface.stable
FilterBarLabelled filters on one line that fold behind one button when the line no longer fits.stable
FormGroups fields and actions, routes server errors to fields, and disables fields while submission is pending.stable
InputCollects single-line text, with search mode offering a clear button and live result count.stable
ListboxShows an inline, keyboard-navigable list of options with no trigger of its own.stable
NumberFieldCollects numeric values with arrow-key stepping, label scrubbing and optional units.beta
RadioGroupSelects one option from a mutually exclusive set.stable
SelectOpens a list and returns the single option the user picks.stable
SliderChooses a number, or a range with one thumb per value, along a track.stable
SwitchToggles a setting that takes effect immediately.stable
TextareaCollects multi-line text; grows with its text from minRows to maxRows, then scrolls.stable

Display

Display components
Name
Purpose
Status
AvatarShows who someone is — their photo, or their initials when there is none.stable
BadgeLabels a status, count, or category without pulling focus: one 20px step at the indicator corner.stable
ChartPlots your data with tooltips, legends, and colors that track the theme.stable
CodeBlockDisplays code with syntax highlighting, copying, and optional line numbers, diffs or folding.stable
DataTableInteractive table — sort, select, expand, and click through rows of data.stable
IconSizes any icon onto the glyph ladder and gives it one ink.stable
ImageFrames pictures with loading feedback and a fallback when the image fails.stable
KbdDraws a keyboard key on a keycap, alone or as one shortcut.stable
ListStacks items down the page with bullets, numbers or icons, or as interactive 32px rows.stable
MarkdownRenders Markdown headings, lists, tables, quotes and syntax-highlighted code at conversation scale.stable
TableRenders tabular data as a real HTML table — headers, rows, footer — at one 32px row track.stable
TextApplies the 11/12/15/24 type ladder to any text element, without hand-rolling font rules.stable

Feedback

Feedback components
Name
Purpose
Status
AlertHighlights information, warnings or errors inline, with context and a clear next action.stable
EmptyStateExplains why an area is blank and offers the next step.stable
LoadingSignals an indeterminate wait: a spinner, dots, a pulse, bars, a matrix or a shimmer.stable
ProgressShows how far along a task is, as one thin bar.stable
SkeletonHolds the shape of content that has not arrived yet.stable
ToastBriefly reports an outcome without blocking the page, using an icon to convey tone.stable

Overlays

Overlays components
Name
Purpose
Status
AlertDialogRequests a required decision, focusing the safest answer and preventing dismissal by outside presses.stable
DialogBlocks the page with one focused task the user finishes or dismisses.stable
DrawerShows edge sheets for navigation or inspection, with focus management and swipe dismissal.stable
MenuDrops a list of actions below a trigger, driveable entirely by keyboard.stable
PopoverAnchors interactive content to a trigger without blocking the page.stable
TooltipShows a one-line hint when a control is hovered or focused.stable

Navigation

Navigation components
Name
Purpose
Status
BreadcrumbsShows where the user is and links back up the hierarchy.stable
CommandFilters and ranks commands as users type, with an optional floating palette.stable
LinkNavigates somewhere else, inline or in chrome, with real link semantics.stable
PaginationSteps through content split across numbered pages.stable
TableOfContentsIndexes a long page and marks the section currently in view.stable
TabsSwaps between sibling panels without leaving the page.stable

Layout

Layout components
Name
Purpose
Status
AccordionStacks sections that expand one at a time, or several at once.stable
AppShellFrames the application with header, sidebar, main and optional aside regions, sharing sidebar state.stable
BoxPlaces content on a chosen plane with optional borders, corners and inset spacing.stable
CardGroups related content onto one bounded surface.stable
CollapsibleShows or hides one region of content behind a trigger.stable
GridArranges items into responsive columns with one shared gap.stable
HeaderGroups the brand, navigation, dropdowns, search, actions and navigation trigger in a top bar.stable
MainDefines the page region, title, content gutter, reading width and vertical rhythm.stable
ScrollAreaScrolls overflowing content with a slim scrollbar and optional edge fades.stable
SeparatorDraws one hairline between sections of related content.stable
SidebarNavigates through a collapsible desktop rail that becomes a modal panel on smaller screens.stable
StackStacks children in a row or column with one consistent gap.stable

AI

AI components
Name
Purpose
Status
ConversationListFollows new messages at the end, preserving position during scrolling and history loading.stable
MessageDisplays user or assistant conversation turns, including sending, streaming and failure states.stable
PromptComposes chat input with attachments and pickers, switching Send to Stop while the assistant works.stable
ThinkingIndicatorShows assistant progress with optional timing and steps, retaining a completion message when work stops.stable

Utilities

  • ComponentDefaults Utility provider that sets the default control size for every control below it.
  • Theme Sets color mode and theme inputs for the page or a nested subtree.
  • VisuallyHidden Keeps text in the accessibility tree while taking it off the screen.

FAQ

Are Fragments components accessible?

Component pages document keyboard behavior, labeling requirements, and relevant standards. Your app still needs testing with its own content, navigation, and theme.

Are these components built on Base UI primitives?

Interactive components use Base UI where appropriate. Fragments adds styling, design tokens, layout components, and metadata describing the public API.

Where can I find examples and props?

Open any row to view a live preview, examples, a props table, usage guidance, and related components. Start with common building blocks like Button, Dialog, Input, and Card.

Next steps

  • Getting startedInstall the package, load its styles, and render a component.
  • AccessibilityKeyboard patterns, labeling guidance, and checks for your app.