Installation
Add HextaUI to a React project with the shadcn CLI, or copy the files in by hand.
Requirements
A React 19 project with Tailwind CSS v4 and a components.json. If you don't have one yet, set it up with the shadcn CLI.
pnpm dlx shadcn@latest initAdd components
Pass a component's registry URL to the CLI. It copies the source into your project, installs its dependencies, adds the theme tokens and pulls in any HextaUI components it builds on.
pnpm dlx shadcn@latest add https://hextaui.com/r/button.jsonAdd every component at once with:
pnpm dlx shadcn@latest add https://hextaui.com/r/all.jsonThe files are yours from then on. Import them from @/components/ui and edit them like any other code.
Namespace
Register HextaUI in components.json to add components by name.
pnpm dlx shadcn@latest add @hextaui/buttonTheme
Components use a few tokens on top of shadcn/ui: status colors, easing curves, a hairline border width and the keyframes they animate with. The CLI adds them for you. When copying files by hand, add this to your global CSS once.
AI assistants
Every page is available as Markdown, so assistants get the full source, examples and API without scraping. Use the Copy page menu at the top of any page, or point your assistant at these files.
https://hextaui.com/llms.txtlists every page with a short description.https://hextaui.com/llms-full.txthas every page in one file.- Add
.mdto any docs URL for that page, likehttps://hextaui.com/docs/button.md.
For the best results, connect the HextaUI MCP server. Assistants search the docs, read each API and get install commands without leaving your editor.
With the namespace above, the shadcn MCP server lets assistants like Claude Code, Cursor and Codex browse and install HextaUI components directly.
pnpm dlx shadcn@latest mcp init --client claude