Early Access: This feature is currently in Early Access. By using it, you
agree to the applicable Free Trial terms in Okta’s Master Subscription
Agreement. Learn about release stages
→
Prerequisites
Auth0 Account: Sign up at auth0.com - React
16.11+: This package supports React 16.11.0 and above, including React 17,
18, and 19 - Tailwind CSS 3+: Follow the Tailwind CSS installation
guide
Installation
npm/pnpm: Installs the package with required peer dependencies (
react-hook-form and @auth0/auth0-react).shadcn: Installs component source code and @auth0/universal-components-core dependency for shared utilities and Auth0 integration.Quick Start
1. Wrap Your App with Auth0Provider and Auth0ComponentProvider
App.tsx
2. Use an Auth0 Universal Component
OrganizationManagementPage.tsx
Configuration
TheAuth0ComponentProvider manages authentication, caching, internationalization, and toast notifications for all components.
Auth0ComponentProvider
Configure authentication, theming, i18n, toast notifications, and TanStack Query caching options
Styling
The stylesheet import in the Quick Start (@auth0/universal-components-react/styles) enables all component styles.
Tailwind v4 users: Add
@import "@auth0/universal-components-react/tailwind" to your CSS file.shadcn users: No import needed, styles are already in your Tailwind build.Styling & Theming Guide
Learn how to customize component appearance to match your brand, including theme presets, dark mode support, CSS variables, and styling options
Example Implementations
See complete working examples in the sample applications.Code Examples
React SPA (npm), React SPA (shadcn), and Next.js sample applications with full implementation patterns