npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@auth0/web-ui-components-react

v1.0.0-beta.21

Published

![Auth0 React Web Universal Components SDK for JavaScript/TypeScript](https://cdn.auth0.com/website/sdks/banners/web-ui-components-react.png)

Readme

Auth0 React Web Universal Components SDK for JavaScript/TypeScript

React component library for Auth0 integrations. Built with TypeScript, Radix UI, and Tailwind CSS.

npm version license downloads

What it provides:

  • ⚛️ React Components: Pre-built UI components for Auth0 features (MFA management, org management etc.)
  • 🎣 Custom Hooks: React hooks for component state management and API interactions
  • 🎨 UI Elements: Beautiful, accessible components built with Radix UI and Tailwind CSS, following shadcn design patterns
  • 🔄 Providers: React context providers for managing authentication, theme, and internationalization

📖 Documentation

For detailed information on how to use these components and get started with Auth0, please refer to the following resources:

  • Component Documentation: Live Storybook showcasing all available components, their props, and usage examples
  • Examples Folder: Practical, hands-on sample applications demonstrating how to integrate and use these components in a real project
  • Auth0 Quickstarts: Official guides for creating and configuring your application on the Auth0 platform
  • Auth0 APIs: Comprehensive documentation for Auth0's APIs

🚀 Getting Started

Installation

For SPA (Single Page Application):

npm install @auth0/web-ui-components-react @auth0/auth0-react

For Next.js/Server-Side (RWA):

npm install @auth0/web-ui-components-react @auth0/nextjs-auth0

Step 1: Set up Auth0

Before using these components, you need an Auth0 account and application:

  1. Create an Auth0 Account - Sign up for free
  2. Create an Application - In your Auth0 Dashboard, create a new application
  3. Configure Settings - Set up your application's allowed callback URLs, logout URLs, and web origins

For detailed setup instructions, follow the Auth0 React Quickstart.

Step 2: Wrap Your App with Providers

For SPA Applications:

import { Auth0Provider } from '@auth0/auth0-react';
import { Auth0ComponentProvider, OrgDetailsEdit } from '@auth0/web-ui-components-react/spa';
import '@auth0/web-ui-components-react/styles';

function App() {
  return (
    <Auth0Provider
      domain="your-domain.auth0.com"
      clientId="your-client-id"
      authorizationParams={{
        redirect_uri: window.location.origin,
      }}
    >
      <Auth0ComponentProvider
        authDetails={{
          domain: 'your-domain.auth0.com',
        }}
        themeSettings={{ theme: 'default', mode: 'light' }}
      >
        <OrgDetailsEdit />
      </Auth0ComponentProvider>
    </Auth0Provider>
  );
}

For Next.js Applications:

// app/layout.tsx or pages/_app.tsx
import { Auth0ComponentProvider } from '@auth0/web-ui-components-react/rwa';
import '@auth0/web-ui-components-react/styles';

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        <Auth0ComponentProvider
          authDetails={{
            authProxyUrl: '/api/auth',
          }}
          themeSettings={{ theme: 'default', mode: 'light' }}
        >
          {children}
        </Auth0ComponentProvider>
      </body>
    </html>
  );
}

Step 3: Use Components

import { OrgDetailsEdit } from '@auth0/web-ui-components-react/spa';
// or
import { OrgDetailsEdit } from '@auth0/web-ui-components-react/rwa';

function MyPage() {
  return (
    <div>
      <h1>Organization Settings</h1>
      <OrgDetailsEdit />
    </div>
  );
}

Requirements

  • React >= 16.11.0
  • React DOM >= 16.11.0
  • react-hook-form >= 7.0.0
  • Tailwind CSS >= 3.0.0 || >= 4.0.0 (recommended)
  • @auth0/auth0-react >= 2.0.0 (required for /spa entry point only)

Related Packages

License

Copyright 2025 Okta, Inc.

Distributed under the MIT License.

Authors
Okta Inc.