Base UI

Unstyled, accessible React components and low-level hooks for building your own design system.

Library
npm
v1.0.0-rc.0
10,997 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
88 /100 Excellent
Development Activity 100
Maintenance 96
Community 68
Maturity 48
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
84 /100 Excellent
Architecture 90
Code Quality 88
Innovation 88
Learning Curve 70

Base UI is a headless React component library from the team behind Material UI, Radix, and Floating UI. It ships fully accessible primitives such as dialogs, menus, comboboxes, selects, tooltips, and form fields with zero built-in styles, so you own every pixel of markup and CSS.

Rather than fighting a pre-styled component kit, you compose Base UI’s unstyled parts and apply your own classes, giving you complete control over appearance while inheriting robust keyboard navigation, focus management, and WAI-ARIA behavior out of the box.

What You Get

  • A broad catalog of unstyled primitives: accordion, dialog, menu, combobox, select, popover, tabs, tooltip, slider, switch, and more
  • Complete accessibility handling with WAI-ARIA roles, keyboard interaction, and focus management built in
  • A full suite of form primitives (field, fieldset, form, input, number field, OTP field, radio, checkbox) with validation wiring
  • A useRender hook and mergeProps utility for composing your own elements and merging behavior onto custom markup
  • First-class TypeScript types and tree-shakeable per-component entry points

Common Use Cases

  • Building a custom design system where you control all styling but need reliable accessibility
  • Replacing a heavier, pre-styled component library with lightweight headless primitives
  • Adding complex interactive widgets (comboboxes, menus, dialogs) without reimplementing ARIA behavior
  • Composing accessible forms with consistent field, validation, and label wiring

Under The Hood

Architecture — Base UI is a pnpm/Lerna monorepo whose primary published package (packages/react) exposes each widget as a set of compound components (for example Switch.Root in src/switch/root/SwitchRoot.tsx). Components are built with React.forwardRef and share behavior through React context and a large src/internals layer (useRenderElement, field/form context providers, use-button, id and labelable helpers). Positioning for popovers, menus, tooltips, and selects is delegated to a bundled Floating UI integration (src/floating-ui-react) plus @floating-ui/react-dom, while a companion @base-ui/utils package supplies low-level hooks like useControlled, useMergedRefs, and useIsoLayoutEffect.

Tech Stack — The library is written almost entirely in TypeScript (99% of the codebase) and targets React 17, 18, and 19 as peer dependencies. Runtime dependencies are deliberately minimal: @babel/runtime, the internal @base-ui/utils, @floating-ui/react-dom, @floating-ui/utils, and use-sync-external-store. Date-based components pick up optional date-fns peers. Builds run through Lerna/Nx with a modern toolchain (tsgo/TypeScript 6, Vitest 4), and each component ships as its own export path for tree-shaking.

Code Quality — The codebase is thoroughly tested, with roughly 286 test files colocated beside components plus dedicated test/ suites (e2e, regressions, bundle-size). Files follow a consistent, deeply-nested convention (component/part directories, *Context, stateAttributesMapping), state is threaded through typed context, and controlled/uncontrolled behavior is centralized via useControlled. Strict typing, ESLint, Stylelint, and Prettier are enforced across the repo.

API Design — The public API leans on the compound-component pattern (Root, Trigger, Popup, Item, etc.) that mirrors the DOM you render, keeping the surface predictable across widgets. A render prop plus the useRender hook and mergeProps let you swap the underlying element or merge Base UI’s behavior onto your own components, and per-component import paths keep bundles lean. Extensive documentation at base-ui.com and consistent naming make it approachable for anyone familiar with Radix-style primitives, though the headless model means you supply all styling yourself.

Used by 50 apps in this directory

TypeScript
65%
Other

Typebot

AI Assistants · AI Development · Developer Tools

10,375

Build sophisticated chatbots visually, embed them anywhere without iframes, and own your data — fully self-hostable with a modular block system and 30+ integrations.

View details
93
Repo Health
82
Technical
65
Dependency
Built with
TypeScript 65%
MDX 34%
Updated 2 weeks ago
Go
58%
AGPL 3.0

Unkey

Developer Tools

5,450

An open-source developer platform for API infrastructure — issue and verify API keys, enforce global rate limits, route traffic through a gateway, and get per-key analytics and audit logs.

View details
91
Repo Health
70
Technical
68
Dependency
Built with
Go 58%
TypeScript 41%
Updated 1 weeks ago
TypeScript
97%
Apache 2.0

Unleash

Ab Testing Experimentation · Developer Tools · Devops

13,836

The open-source feature management platform that lets you ship code to production and control who sees it — without redeploying.

View details
90
Repo Health
84
Technical
70
Dependency
Built with
TypeScript 97%
Updated 2 weeks ago
Python
73%
Apache 2.0

Unsloth

AI Assistants · AI Development

76,886

Run and fine-tune LLMs, diffusion, audio and embedding models on your own hardware, from a native desktop app, a browser UI, or a Python library.

View details
89
Repo Health
83
Technical
70
Dependency
Built with
Python 73%
TypeScript 21%
Updated 1 weeks ago
Python
56%
AGPL 3.0

VoiceStudio

Mcp · Music Audio · Voice AI

51,962

Open-source, fully local ElevenLabs alternative for voice cloning, voice design, video dubbing, dictation, transcription and audiobooks, with a local API and MCP server for agents.

View details
85
Repo Health
83
Technical
70
Dependency
Built with
Python 56%
JavaScript 23%
TypeScript 19%
Updated 6 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers