Skip to main content

Root Native UI

Root Native UI gives you Material Design 3 components for React Native, on a design-system agnostic theme engine. You restyle each component through the theme.

It runs on iOS, Android, and the web (on @rootnative/web or react-native-web), on the Expo SDK 58 runtime. See Installation for the platform table.

Features​

  • A theme engine for any design system: use MD3, make your own, or mix both
  • Material Design 3 built in, with a light and a dark theme
  • A full MD3 theme from one seed color
  • Full TypeScript support with strict types
  • Accessible by default: each component sets its role, its label, and its state, and each animation obeys the OS reduce-motion setting
  • Tree-shakeable, with one subpath export per component
  • Responsive layout hooks (useBreakpoint, useBreakpointValue, useWindowDimensions) on the MD3 window size classes

Get started​

  • New project: Quick Start makes a ready-to-run Expo app with npx rootnative create.
  • Existing project: Installation adds Root Native UI to your React Native or Expo app.

Components​

Layout​

ComponentDescription
BoxA theme-aware View with spacing shorthand props
RowA horizontal layout with wrap and invert support
ColumnA vertical layout with invert support
GridAn equal-width multi-column grid
LayoutA safe-area wrapper with the theme background

Inputs​

ComponentDescription
ButtonActions and choices with one tap
ButtonGroupConnected buttons with single or multi selection
CheckboxSelection controls for multiple choices
ChipCompact elements for filters and selections
FABA floating action button for the primary action of the screen
IconButtonIcon-only actions
RadioSelection controls for one choice
SearchBarAn MD3 search bar with a clear button and trailing actions
SliderSelects a value or a range from a continuous track
SplitButtonA main action with a trailing button that opens a menu
SwitchToggle controls for on/off settings
TextFieldA text input with labels and validation

Data Display​

ComponentDescription
AvatarAn image, initials, or an icon that represents a person
CardContained surfaces for related content
DividerA thin horizontal or vertical rule that groups content
IconAny icon source, rendered through the theme resolver
ListVertically arranged items with text and icons
LoadingIndicatorThe MD3 Expressive shape-morphing loading indicator
ProgressLinear and circular progress indicators (determinate / indeterminate)
TypographyText in the MD3 type scale

Surfaces​

ComponentDescription
AppBarTop navigation with a title and actions
BottomAppBarAn 80dp bottom bar with icon actions and a flat FAB
BottomSheetDraggable modal and standard sheets with snap points
DialogBasic and full-screen modal dialogs
KeyboardAvoidingWrapperKeeps inputs visible when the keyboard opens
MenuAnchored dropdown menus that flip and shift to stay on screen
PortalRenders content above the rest of the tree
SideSheetModal and standard sheets at the side, with a headline and actions
SnackbarQueued transient messages with an optional action
TooltipPlain and rich tooltips on hover or a long press
ComponentDescription
TabsPrimary and secondary tab rows, fixed or scrollable
NavigationBarAn 80dp bottom destination bar with an animated indicator pill
NavigationRailAn 80dp side rail of destinations with an optional menu and FAB header
NavigationDrawerA modal or standard side panel of destinations with sections and badges