Heroui
π Beautiful, fast and modern React UI library. (Previously NextUI)
HeroUI (previously NextUI) is a production-ready React component library that combines the accessibility rigor of [React Aria](https://react-spectrum.adobe.com/react-aria/) with the utility-first styling of [Tailwind CSS v4](https://tailwindcss.com/). It ships a clean compound component API (`Card.Header`, `Card.Content`, `Select.Item`, β¦), requires no `` wrapper, and works out of the box with React 19 and Next.js. The project is written primarily in MDX, distributed under the Apache License 2.0 license, first published in 2021. It has gained significant community traction with 29,456 stars and 2,151 forks on GitHub. Key topics include: component-library, components, library, reactjs.
Why HeroUI?
HeroUI (previously NextUI) is a production-ready React component library that combines the accessibility rigor of React Aria with the utility-first styling of Tailwind CSS v4. It ships a clean compound component API (Card.Header, Card.Content, Select.Item, β¦), requires no <Provider> wrapper, and works out of the box with React 19 and Next.js.
- Accessible by default β Built on React Aria for WCAG-compliant keyboard, focus, and screen-reader behavior
- Tailwind CSS v4 β Modern engine, no CSS-in-JS runtime, smaller output, faster builds
- Compound components β Composable API (
Card.Header,Card.Content) instead of deeply nested props - Zero boilerplate β No Provider wrapper needed (unlike Chakra, MUI)
- AI-native β MCP server,
llms.txt, and agent skills so AI assistants understand your components - Battle-tested β Previously known as NextUI, trusted by thousands of production apps
Packages
| Package | Description |
|---|---|
@heroui/react | Full component bundle |
@heroui/styles | Styles / theme only |
| Individual packages | e.g. @heroui/button, @heroui/modal β tree-shakeable per-component imports |
Getting Started
Visit heroui.com/docs/react/getting-started/quick-start to get started with HeroUI.
bashnpm install @heroui/react
Who Is This For?
HeroUI is a good fit if you are building:
- SaaS applications β forms, tables, overlays, and notifications out of the box
- Dashboards & admin panels β data-dense layouts with consistent design tokens
- E-commerce storefronts β performant, accessible, SEO-friendly components
- Marketing sites & landing pages β polished UI without a heavyweight runtime
- Any React / Next.js project that values design quality and accessibility
AI-Powered Development
HeroUI is built for the AI-assisted development workflow.
| Tool | What it does |
|---|---|
MCP Server (@heroui/react-mcp) | Components that understand your theme β install the server in Cursor, Claude Code, Windsurf, or any MCP-compatible editor |
| llms.txt | Available at heroui.com/llms.txt β structured context for LLMs about every component |
| Agent Skills | Run npx heroui-cli agents-md to install skills for Cursor, Claude Code, and more |
Works with Cursor, Claude Code, Windsurf, GitHub Copilot, and any tool that supports MCP or llms.txt.
Compared To
| Library | How HeroUI differs |
|---|---|
| shadcn/ui | HeroUI is batteries-included with a consistent design system; shadcn is copy-paste-customize |
| MUI | HeroUI is lighter, Tailwind-native, no CSS-in-JS runtime overhead |
| Chakra UI | HeroUI uses React Aria (stronger a11y primitives) and Tailwind v4 (better perf) |
| Mantine | HeroUI has AI tooling (MCP, llms.txt), Tailwind-first styling |
Documentation
- Latest (v3): heroui.com
- v2: v2.heroui.com
Storybook
Visit storybook-v3.heroui.com to view the storybook for all components.
Roadmap
Visit herouiv3.featurebase.app/roadmap to view the roadmap for HeroUI v3.
Figma
Visit the HeroUI Figma Kit (v3) to view the design kit.
Community
We're excited to see the community adopt HeroUI, raise issues, and provide feedback.
Whether it's a feature request, bug report, or a project to showcase, please get involved!
Contributing
Contributions are always welcome!
See CONTRIBUTING.md for ways to get started.
Please adhere to this project's CODE_OF_CONDUCT.
License
Contributors
Showing top 12 contributors by commit count.