A comprehensive library of reusable UI components and utilities for Auth0 integrations, built with modern web technologies and designed for scalability.
For detailed information on how to use these components and get started with Auth0, please refer to the following resources:
This project uses a monorepo architecture designed for multi-framework support. It is organized into two main types of packages:
@auth0/universal-components-core package that contains all the core logic, services, and utilities.@auth0/universal-components-react) that provide UI components and hooks for a particular technology. This structure allows for the future addition of packages for other frameworks like Vue or Angular.packages/core/@auth0/universal-components-core - The foundational package containing core utilities and services.
What it provides:
packages/react/@auth0/universal-components-react - React-specific UI components and hooks for Auth0 integrations.
What it provides:
For detailed instructions on how to install and use the components in your project, please refer to the README.md file within the specific framework package you are using.
Clone the repository:
git clone https://github.com/auth0/auth0-ui-components
cd auth0-ui-components
Install dependencies:
pnpm install
Build all packages:
pnpm run build
To make and test changes locally:
packages/core or packages/react).pnpm run build
examples/ directory (e.g., examples/react-spa-npm)..env file as per the example's README.pnpm run dev
Running tests:
pnpm run test
pnpm run test:react
pnpm run test:core
To run a specific test, go to the relevant package folder and run:
pnpm run test organization-details-edit
Update registry.json with your changes.
Create a new build based on registry.json:
pnpm build:shadcn
Open docs-site and serve the registry:
cd docs-site
pnpm install
pnpm run dev
Go to your app (e.g., react-spa-shadcn) and update the components:
npx shadcn@latest add http://localhost:5173/r/my-account/user-mfa-management.json --overwrite
npx shadcn@latest add http://localhost:5173/r/my-organization/organization-details-edit.json --overwrite
# ... other components
Note: The port may differ if other applications are running.
Explore public components available in @auth0/universal-components-react.
Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs, feature requests, or improvements.
Copyright 2025 Okta, Inc
This project is licensed under the MIT License. See the LICENSE file for details.
Authors
Okta Inc.