Learn how to install and configure Auth0 Universal Components for web applications.
The Auth0 Universal Components for Web library provides pre-built, embeddable UI for Auth0 identity flows using React and Next.js.Universal Components for Web are built on top of the Auth0 SDKs and integrate with the My Organization API to power embedded delegated administration, such as managing Organizations, domains, and SSO providers.
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 */}
Wrap your application with Auth0Provider and Auth0ComponentProvider:In your root layout, add the Auth0ComponentProvider in proxy mode. Auth0Provider is configured separately in your Next.js setup (typically in layout.tsx via @auth0/nextjs-auth0).
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 */}