Auth0 Universal Components is a library of pre-built UI components you can leverage to build your identity pipeline and experience inside your application. Built on Auth0 SDKs with an API-first approach, Universal Components allows you to embed Auth0’s services, such as authentication flows, Organization management, and MFA enrollment, without building the UI manually or managing high-privilege backend proxies.With Universal Components, you can:
Create and manage your Auth0 Organization(s)
Manage user roles and accounts within your Organization
Universal Components acts as the presentation layer between your application and Auth0, coordinating communication between your application, the My Account and My Organization APIs, and Auth0 SDKs.Auth0 SDKs function as the logic, handling authentication flows, token exchange, and session managment. The My Account API provides self-service capabilities for authenticated users to manage their authentication experience. For example, authenticated users can choose their own authentication methods, such as MFA or passkeys. The My Organization API provides a secure, Organization-scoped interface that allows your business customers to manage their own Organizations within your Auth0 tenant. This API serves as the technical backbone for embedded delegated administration and API-first integrations.Universal Components leverages Shadcn components and Tailwind CSS stylesheets to customize components to fit your own branding and themes.
The stylesheet you imported (@auth0/universal-components-react/styles)
enables all component styles. If you’re using Tailwind v4, add @import "@auth0/universal-components-react/tailwind" to your CSS file.
Use CSS variables to customize your branding:
:root { --primary: #4f46e5; /* your brand color */ --primary-foreground: #ffffff; /* text on buttons */}
The Auth0ComponentProvider manages authentication, caching, internationalization, and toast notifications for all components. In Next.js, use proxy mode for server-side authentication.
The stylesheet you imported (@auth0/universal-components-react/styles)
enables all component styles. If you’re using Tailwind v4, add @import "@auth0/universal-components-react/tailwind" to your CSS file.
Use CSS variables to customize your branding:
:root { --primary: #4f46e5; /* your brand color */ --primary-foreground: #ffffff; /* text on buttons */}