TopClass UI
An RTL-first, server-first React component library for Next.js and Tailwind CSS v4.
- Stack
- React 19
- Next.js 15+
- Tailwind CSS v4
- TypeScript
- Base UI
- zod
- Vitest
- Playwright
Problem
I wanted React components for Next.js and Tailwind CSS v4 where right-to-left comes first: every component should work in Arabic without a code change. I also wanted the server to come first, so that most components render on the server and add no JavaScript to the page.
What I built
I built TopClass UI: 46+ components in TypeScript for React 19, Next.js 15+ and Tailwind CSS v4, on top of Base UI and zod. Light, dark and a custom mode all come from one CSS block. The components are tested with Vitest and Playwright.
Result
TopClass UI is on npm, with 46+ components and thousands of unit and browser tests. Every component works in Arabic without a code change, and most add no JavaScript. This site is built with it.
Install
npx topclassui init