Skip to content

Philosophy

Why another React UI library, and the principles behind its components.

Yet another React UI library? Here's what makes this one different.

Minimal dependencies

Components depend on React and Base UI (opens in a new tab), which handles focus, keyboard navigation and ARIA. That's it. Calendar, Carousel and the charts borrow ideas from React DayPicker (opens in a new tab), Embla Carousel (opens in a new tab) and Recharts (opens in a new tab) respectively, without pulling in code they'd mostly leave unused.

Syntax highlighting is bring-your-own. Code Block and Markdown render tokens from popular highlighters, such as Shiki (opens in a new tab), TanStack Highlight (opens in a new tab) or @pierre/highlights (opens in a new tab), rather than choosing one for you.

There are two exceptions:

Modern CSS and browser APIs

If the browser can do something, the components don't reimplement it in JavaScript.

  • Textarea grows with field-sizing: content.
  • Carousel is native scrolling with CSS scroll snap.
  • Card and Field adapt to their container with container queries.
  • Tag Input animates new tags with @starting-style.
  • Marquee runs on the Web Animations API.
  • Dates and numbers are formatted with Intl.

Browsers without a feature get a working fallback, such as a textarea that scrolls instead of growing.

Server first

Components render on the server and hydrate without mismatches. Those without state, such as Button, Table and Markdown, skip "use client" and render in a React Server Component, so only the interactive parts ship to the browser. Nothing reads window or storage during render, and Intl formatting takes a locale so the server and the browser format the same way. Installation covers using them from server components.

Pixel perfect

Every component is checked in light and dark mode, at phone width, and in every state: hover, pressed, focus, disabled, invalid and pending. Hairline dividers keep their contrast, small controls get 24px hit areas, focus rings are offset to fit where they sit, and fields stay at 16px on phones so Safari doesn't zoom in.

If something is a pixel off, I treat it as a bug. Open an issue (opens in a new tab).