Quick Start
Get started with Better Auth UI for HeroUI.
Prerequisites
Install these prerequisites in your project:
Installation
Install the libraries
Install @better-auth-ui/heroui, @better-auth-ui/react, and @better-auth-ui/core using your preferred package manager.
npm install @better-auth-ui/heroui@latest @better-auth-ui/react@latest @better-auth-ui/core@latestConfigure Tailwind CSS
Add this @import to the global CSS file:
@import "@better-auth-ui/heroui/styles";The <Auth /> router includes the built-in authentication views.
Next steps
Follow a framework-specific guide to integrate Better Auth UI into your project.
TanStack Start
Integrate Better Auth UI with TanStack Start
Next.js
Integrate Better Auth UI with Next.js
React Reference
Each HeroUI component uses the shared @better-auth-ui/react data layer. Read the React reference to access or change authentication state directly.
Last updated on