BETTER-AUTH. UI

Quick Start

Getting Started with Better Auth UI for shadcn/ui

Prerequisites

Before you start, make sure you have the following prerequisites integrated into your project:

Installation

Install the auth components

Install the authentication page components using shadcn CLI.

npx shadcn@latest add https://better-auth-ui.com/r/auth.json

This installs the <Auth /> component and its views: sign-in, sign-up, forgot-password, reset-password, and sign-out.

Install settings and user button (optional)

If you need the settings page and user button, install them separately.

npx shadcn@latest add https://better-auth-ui.com/r/settings.json https://better-auth-ui.com/r/user-button.json

Install everything (optional)

Alternatively, install every component, plugin, and email template in one shot.

npx shadcn@latest add https://better-auth-ui.com/r/all.json

Next Steps

Follow a framework-specific guide to integrate Better Auth UI into your project.

React Reference

Every shadcn/ui component is built on the shared @better-auth-ui/react data layer. Dive into the hooks and query primitives when you need to read, mutate, or extend auth state directly.

Last updated on

On this page