> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure Verified Domains on Web

> Learn how to manage verified and pending Organization domains in a unified table interface.

> [!WARNING]
>
> **The Auth0 Universal Components feature is in [Early Access](/docs/docs/troubleshoot/product-lifecycle/product-release-stages).**
>
> To participate, contact Auth0 Support.
>
> By using this feature, you agree to the applicable Free Trial terms in Okta's [Master Subscription Agreement](https://www.okta.com/legal).

The `DomainTable` component provides a unified interface for your customers to manage their Auth0 Organization's email domain. By verifying domain ownership, Organization administrators enable critical B2B features like [Home Realm Discovery (HRD)](/docs/docs/authenticate/enterprise-connections/self-service-enterprise-configuration/manage-self-service-enterprise-config#email-domain-verification-and-pre-verified-domains) and ensure users are automatically routed to the correct SSO provider based on their email suffix (for example, `user@acme.com`).

Loading

Preview of the Domain Table component

> [tab] React
>
> ## Setup requirements
>
> **Auth0 Configuration Required**—Ensure your tenant is configured with the
> My Organization API. [View setup guide
> →](/docs/docs/get-started/universal-components/web/components/build-delegated-admin#enable-the-my-organization-api)
>
> ## Install the component
>
> ```bash pnpm  wrap lines theme={null}
> pnpm add @auth0/universal-components-react
> ```
>
> ```bash npm wrap lines theme={null}
> npm install @auth0/universal-components-react
> ```
>
> Running either command also installs the @auth0/universal-components-core
> dependency for shared utilities and Auth0 integration.
>
> ## Get started
>
> ```tsx React SPA wrap lines theme={null}
> import { DomainTable } from "@auth0/universal-components-react";
>
> export function DomainsPage() {
>   return <DomainTable />;
> }
> ```
>
> > [accordion] Full integration example
> >
> > ```tsx lines theme={null}
> > import React from "react";
> > import { DomainTable } from "@auth0/universal-components-react";
> > import { Auth0Provider } from "@auth0/auth0-react";
> > import { Auth0ComponentProvider } from "@auth0/universal-components-react/spa";
> > import { useNavigate } from "react-router-dom";
> >
> > function DomainsManagementPage() {
> >   const navigate = useNavigate();
> >
> >   return (
> >     <div className="max-w-6xl mx-auto p-6">
> >       <DomainTable
> >         schema={{
> >           create: {
> >             domainUrl: {
> >               regex: /^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/i,
> >               errorMessage: "Please enter a valid domain (e.g., example.com)",
> >             },
> >           },
> >         }}
> >         createAction={{
> >           onBefore: (domain) => {
> >             if (!domain.domain.includes(".")) {
> >               alert("Please enter a valid domain with a TLD");
> >               return false;
> >             }
> >             return true;
> >           },
> >           onAfter: (domain) => console.log("Domain created:", domain),
> >         }}
> >         verifyAction={{
> >           onAfter: (domain) => {
> >             console.log("Domain verified:", domain.domain);
> >           },
> >         }}
> >         deleteAction={{
> >           onBefore: (domain) => {
> >             return confirm(`Delete ${domain.domain}?`);
> >           },
> >         }}
> >         onOpenProvider={(provider) => {
> >           navigate(`/providers/${provider.id}`);
> >         }}
> >         onCreateProvider={() => {
> >           navigate("/providers/create");
> >         }}
> >         customMessages={{
> >           header: {
> >             title: "Domain Management",
> >             description: "Add and verify domains for your organization",
> >             create_button_text: "Add New Domain",
> >           },
> >         }}
> >         styling={{
> >           variables: {
> >             common: { "--font-size-label": "12px" },
> >             light: { "--color-primary": "#0066cc" },
> >           },
> >           classes: {
> >             "DomainTable-header": "shadow-lg rounded-xl",
> >           },
> >         }}
> >       />
> >     </div>
> >   );
> > }
> >
> > export default function App() {
> >   const domain = "your-domain.auth0.com";
> >
> >   return (
> >     <Auth0Provider
> >       domain={domain}
> >       clientId="your-client-id"
> >       authorizationParams={{
> >         redirect_uri: window.location.origin,
> >       }}
> >       interactiveErrorHandler="popup" // Required to handle step-up auth challenges via Universal Login popup
> >     >
> >       <Auth0ComponentProvider>
> >         <DomainsManagementPage />
> >       </Auth0ComponentProvider>
> >     </Auth0Provider>
> >   );
> > }
> >
> > ```
>
> ## Props
>
> ### Display props
>
> Display props control how the component renders without affecting its behavior. Use these to hide sections or enable read-only mode.
>
> | Prop | Type | Description |
> | :- | :- | :- |
> | `readOnly` | `boolean` | Disable all domain operations. Default: `false` |
> | `hideHeader` | `boolean` | Hide the header section. Default: `false` |
>
> ***
>
> ### Action props
>
> Action props handle user interactions and define what happens when users perform domain operations. Use lifecycle hooks (`onBefore`, `onAfter`) to integrate with your application's routing and analytics.
>
> | Prop | Type | Description |
> | :- | :- | :- |
> | `createAction` | `ComponentAction<Domain>` | Create domain action. |
> | `verifyAction` | `ComponentAction<Domain>` | Verify domain action. |
> | `deleteAction` | `ComponentAction<Domain>` | Delete domain action. |
> | `associateToProviderAction` | `ComponentAction<Domain, IdentityProvider>` | Associate domain to provider. |
> | `deleteFromProviderAction` | `ComponentAction<Domain, IdentityProvider>` | Remove domain from provider. |
> | `onOpenProvider` | `(provider: IdentityProvider) => void` | Navigate to provider from configure modal. |
> | `onCreateProvider` | `() => void` | Navigate to create provider flow. |
>
> **createAction**
>
> **Type:** `ComponentAction<Domain>`
>
> Controls the domain creation flow. Use `onAfter` to track when new domains are added.
>
> **Properties:**
>
> * `disabled`—Disable the "Add Domain" button
> * `onBefore(domain)`—Runs before the domain is created. Return `false` to prevent creation (for example, if the domain format is invalid).
> * `onAfter(domain)`—Runs after the domain is successfully created. Use this to show a notification or track the event.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   createAction={{
>     onBefore: (domain) => {
>       // Validate domain format
>       if (!domain.domain.includes(".")) {
>         alert("Please enter a valid domain");
>         return false;
>       }
>       return true;
>     },
>     onAfter: (domain) => {
>       analytics.track("Domain Created", { domain: domain.domain });
>     },
>   }}
> />
> ```
>
> ***
>
> **verifyAction**
>
> **Type:** `ComponentAction<Domain>`
>
> Controls the domain verification flow. Domain verification proves ownership via DNS TXT record.
>
> **Properties:**
>
> * `disabled`—Disable the verify button
> * `onBefore(domain)`—Runs before the verification attempt. Return `false` to prevent verification (for example, to confirm DNS is configured).
> * `onAfter(domain)`—Runs after the domain is successfully verified. Use this to show a success notification.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   verifyAction={{
>     onBefore: (domain) => {
>       return confirm(
>         `Verify ${domain.domain}? Make sure your DNS record is configured.`,
>       );
>     },
>     onAfter: (domain) => {
>       toast.success(`${domain.domain} verified successfully!`);
>     },
>   }}
> />
> ```
>
> ***
>
> **deleteAction**
>
> **Type:** `ComponentAction<Domain>`
>
> Controls domain deletion. Recommended to use `onBefore` for confirmation since this is destructive.
>
> **Properties:**
>
> * `disabled`—Disable the delete button
> * `onBefore(domain)`—Runs before the deletion. Return `false` to prevent deletion (recommended for confirmation dialogs).
> * `onAfter(domain)`—Runs after the domain is successfully deleted. Use this to track the event or show a notification.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   deleteAction={{
>     onBefore: (domain) => {
>       return confirm(`Delete ${domain.domain}? This cannot be undone.`);
>     },
>     onAfter: (domain) => {
>       analytics.track("Domain Deleted", { domain: domain.domain });
>     },
>   }}
> />
> ```
>
> ***
>
> **associateToProviderAction**
>
> **Type:** `ComponentAction<Domain, IdentityProvider>`
>
> Controls associating a verified domain with an SSO provider. Only verified domains can be associated, and a domain can be associated with only one connection at a time. To use a different connection, remove the current one first, then select a new one and select **Save**.
>
> **Properties:**
>
> * `disabled`—Disable the associate action
> * `onBefore(domain, provider)`—Runs before the association. Return `false` to prevent the association.
> * `onAfter(domain, provider)`—Runs after the domain is successfully associated with the provider.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   associateToProviderAction={{
>     onAfter: (domain, provider) => {
>       console.log(`Associated ${domain.domain} with ${provider.name}`);
>     },
>   }}
> />
> ```
>
> ***
>
> **deleteFromProviderAction**
>
> **Type:** `ComponentAction<Domain, IdentityProvider>`
>
> Controls removing a domain's association with an SSO provider. It runs when a user selects **Remove** next to the associated connection in the configure dialog.
>
> **Properties:**
>
> * `disabled`—Disable the disassociate action
> * `onBefore(domain, provider)`—Runs before the removal. Return `false` to prevent the removal.
> * `onAfter(domain, provider)`—Runs after the domain is successfully removed from the provider.
>
> ***
>
> **onOpenProvider / onCreateProvider**
>
> **Type:** `(provider: IdentityProvider) => void` / `() => void`
>
> Navigation handlers for the domain configuration modal. When users configure a domain's provider associations:
>
> * `onOpenProvider`—Called when a user selects **View** next to the connection associated with the domain. The **View** button is shown only when you provide this handler.
> * `onCreateProvider`—Called when a user selects **Add a Provider** because the organization has no connections
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   onOpenProvider={(provider) => {
>     navigate(`/providers/${provider.id}`);
>   }}
>   onCreateProvider={() => {
>     navigate("/providers/create");
>   }}
> />
> ```
>
> ***
>
> ### Customization props
>
> Customization props let you adapt the component to your brand, locale, and validation requirements without modifying source code.
>
> | Prop | Type | Description |
> | :- | :- | :- |
> | `schema` | `DomainTableSchema` | Domain URL validation rules. |
> | `customMessages` | `Partial<DomainTableMainMessages>` | i18n text overrides. |
> | `styling` | `ComponentStyling` | CSS variables and class overrides. |
>
> **schema**
>
> Set custom validation rules for domain URL input.
>
> > [accordion] Available Schema Fields
> >
> > **create.domainUrl**—Domain URL validation—`regex`—Custom regex pattern
> >
> > * `errorMessage`—Custom error message
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   schema={{
>     create: {
>       domainUrl: {
>         regex: /^[a-z0-9.-]+\.[a-z]{2,}$/,
>         errorMessage: "Enter a valid domain (example.com)",
>       },
>     },
>   }}
> />
> ```
>
> ***
>
> **customMessages**
>
> Customize all text and translations. All fields are optional and use defaults if not provided.
>
> > [accordion] Available Messages
> >
> > **header**—Component header
> >
> > * `title`, `description`, `create_button_text`
> >
> > **table**—Table display
> >
> > * `empty_message`
> > * `columns.domain`, `columns.status`
> > * `actions.configure_button_text`, `actions.view_button_text`, `actions.verify_button_text`, `actions.delete_button_text`
> >
> > **create.modal**—Create domain modal
> >
> > * `title`
> > * `field.label`, `field.placeholder`, `field.error`
> > * `actions.cancel_button_text`, `actions.create_button_text`
> >
> > **verify.modal**—Verify domain modal
> >
> > * `title`
> > * `txt_record_name.label`, `txt_record_content.label`, `verification_status.label`
> > * `actions.verify_button_text`, `actions.done_button_text`
> >
> > **delete.modal**—Delete confirmation
> >
> > * `title`
> > * `description.pending`, `description.verified`
> > * `actions.cancel_button_text`, `actions.delete_button_text`
> >
> > **configure.modal**—Provider configuration
> >
> > * `title`, `description`, `assigned_description`, `no_connection_status`
> > * `field.label`, `field.placeholder`
> > * `table.empty_message`
> > * `table.actions.add_provider_button_text`, `table.actions.view_provider_button_text`
> > * `actions.close_button_text`, `actions.save_button_text`
> > * `actions.remove_button_text`, `actions.remove_button_aria_label`
> >
> > **notifications**—API responses
> >
> > * `fetch_providers_error`, `fetch_domains_error`
> > * `domain_create_success`, `domain_create_error`
> > * `domain_verify_success`, `domain_verify_error`, `domain_verify_verification_failed`
> > * `domain_delete_success`, `domain_delete_error`
> > * `domain_associate_provider_success`, `domain_associate_provider_error`
> > * `domain_delete_provider_success`, `domain_delete_provider_error`
> >
> > **shared**—Shared messages
> >
> > * `domain_statuses.pending`, `domain_statuses.verified`, `domain_statuses.failed`
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   customMessages={{
>     header: {
>       title: "Manage Domains",
>       description: "Configure and verify organization domains",
>       create_button_text: "Add Domain",
>     },
>     table: {
>       empty_message: "No domains yet. Add one to begin.",
>     },
>     notifications: {
>       domain_create_success: "Domain added successfully!",
>       domain_verify_success: "Domain verified!",
>       domain_delete_success: "Domain removed.",
>     },
>   }}
> />
> ```
>
> ***
>
> **styling**
>
> Customize appearance with CSS variables and class overrides. Supports theme-aware styling.
>
> > [accordion] Available Styling Options
> >
> > **Variables**—CSS custom properties
> >
> > * `common`—Applied to all themes
> > * `light`—Light theme only
> > * `dark`—Dark theme only
> >
> > **Classes**—Component class overrides
> >
> > * `DomainTable-header`
> > * `DomainTable-table`
> > * `DomainTable-tableActions`
> > * `DomainTable-createModal`
> > * `DomainTable-configureModal`
> > * `DomainTable-deleteModal`
> > * `DomainTableConfigureModal-dialogContent`
> > * `DomainTableVerifyModal-dialogContent`
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   styling={{
>     variables: {
>       common: { "--font-size-title": "1rem" },
>       light: { "--color-primary": "#4f46e5" },
>     },
>     classes: {
>       "DomainTable-header": "mb-6",
>       "DomainTable-table": "rounded-lg shadow-sm",
>     },
>   }}
> />
> ```
>
> ***
>
> ## Advanced customization
>
> ### Available hooks
>
> These hooks provide the underlying logic without any UI. Use them to build completely custom interfaces while leveraging the Auth0 API integration.
>
> | Hook | Description |
> | :- | :- |
> | `useDomainTable` | Data + API layer (fetch, create, verify, delete, associate) |

> [tab] Next.js
>
> ## Setup requirements
>
> **Auth0 Configuration Required**—Ensure your tenant is configured with the
> My Organization API. [View setup guide
> →](/docs/docs/get-started/universal-components/web/components/build-delegated-admin#configure-auth0-dashboard)
>
> ## Install component
>
> ```bash npm  wrap lines theme={null}
> npm install @auth0/universal-components-react
> ```
>
> ```bash pnpm wrap lines theme={null}
> pnpm add @auth0/universal-components-react
> ```
>
> Running the pnpm or npm commands installs the @auth0/universal-components-core
> dependency for shared utilities and Auth0 integration.
>
> ## Get started
>
> ```tsx page.tsx wrap lines theme={null}
> import { DomainTable } from "@auth0/universal-components-react";
> import { useRouter } from "next/navigation";
>
> export function DomainsPage() {
>   const router = useRouter();
>
>   return (
>     <DomainTable
>       onOpenProvider={(provider) => {
>         router.push(`/providers/${provider.id}`);
>       }}
>       onCreateProvider={() => {
>         router.push("/providers/create");
>       }}
>     />
>   );
> }
> ```
>
> > [accordion] Full integration example
> >
> > ```tsx lines theme={null}
> > import React from "react";
> > import { DomainTable } from "@auth0/universal-components-react";
> > import { useRouter } from "next/navigation";
> >
> > function DomainsManagementPage() {
> >   const router = useRouter();
> >
> >   return (
> >     <div className="max-w-6xl mx-auto p-6">
> >       <DomainTable
> >         schema={{
> >           create: {
> >             domainUrl: {
> >               regex: /^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/i,
> >               errorMessage: "Please enter a valid domain (e.g., example.com)",
> >             },
> >           },
> >         }}
> >         createAction={{
> >           onBefore: (domain) => {
> >             if (!domain.domain.includes(".")) {
> >               alert("Please enter a valid domain with a TLD");
> >               return false;
> >             }
> >             return true;
> >           },
> >           onAfter: (domain) => console.log("Domain created:", domain),
> >         }}
> >         verifyAction={{
> >           onAfter: (domain) => {
> >             console.log("Domain verified:", domain.domain);
> >           },
> >         }}
> >         deleteAction={{
> >           onBefore: (domain) => {
> >             return confirm(`Delete ${domain.domain}?`);
> >           },
> >         }}
> >         onOpenProvider={(provider) => {
> >           router.push(`/providers/${provider.id}`);
> >         }}
> >         onCreateProvider={() => {
> >           router.push("/providers/create");
> >         }}
> >         customMessages={{
> >           header: {
> >             title: "Domain Management",
> >             description: "Add and verify domains for your organization",
> >             create_button_text: "Add New Domain",
> >           },
> >         }}
> >         styling={{
> >           variables: {
> >             common: { "--font-size-label": "12px" },
> >             light: { "--color-primary": "#0066cc" },
> >           },
> >           classes: {
> >             "DomainTable-header": "shadow-lg rounded-xl",
> >           },
> >         }}
> >       />
> >     </div>
> >   );
> > }
> >
> > export default DomainsManagementPage;
> > ```
>
> ## Props
>
> ### Display props
>
> Display props control how the component renders without affecting its behavior. Use these to hide sections or enable read-only mode.
>
> <table>
>   <thead>
>     <tr>
>       <th>Prop</th>
>       <th>Type</th>
>       <th>Description</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `readOnly`
>       </td>
>
>       <td>
>         `boolean`
>       </td>
>
>       <td>
>         Disable all domain operations. Default: `false`
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `hideHeader`
>       </td>
>
>       <td>
>         `boolean`
>       </td>
>
>       <td>
>         Hide the header section. Default: `false`
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> ***
>
> ### Action props
>
> Action props handle user interactions and define what happens when users perform domain operations. Use lifecycle hooks (`onBefore`, `onAfter`) to integrate with your application's routing and analytics.
>
> <table>
>   <thead>
>     <tr>
>       <th>Prop</th>
>       <th>Type</th>
>       <th>Description</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `createAction`
>       </td>
>
>       <td>
>         `ComponentAction<Domain>`
>       </td>
>
>       <td>
>         Create domain action.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `verifyAction`
>       </td>
>
>       <td>
>         `ComponentAction<Domain>`
>       </td>
>
>       <td>
>         Verify domain action.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `deleteAction`
>       </td>
>
>       <td>
>         `ComponentAction<Domain>`
>       </td>
>
>       <td>
>         Delete domain action.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `associateToProviderAction`
>       </td>
>
>       <td>
>         `ComponentAction<Domain, IdentityProvider>`
>       </td>
>
>       <td>
>         Associate domain to provider.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `deleteFromProviderAction`
>       </td>
>
>       <td>
>         `ComponentAction<Domain, IdentityProvider>`
>       </td>
>
>       <td>
>         Remove domain from provider.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `onOpenProvider`
>       </td>
>
>       <td>
>         `(provider: IdentityProvider) => void`
>       </td>
>
>       <td>
>         Navigate to provider from configure modal.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `onCreateProvider`
>       </td>
>
>       <td>
>         `() => void`
>       </td>
>
>       <td>
>         Navigate to create provider flow.
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> **createAction**
>
> **Type:** `ComponentAction<Domain>`
>
> Controls the domain creation flow. Use `onAfter` to track when new domains are added.
>
> **Properties:**
>
> * `disabled`—Disable the "Add Domain" button
> * `onBefore(domain)`—Runs before the domain is created. Return `false` to prevent creation (for example, if the domain format is invalid).
> * `onAfter(domain)`—Runs after the domain is successfully created. Use this to show a notification or track the event.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   createAction={{
>     onBefore: (domain) => {
>       // Validate domain format
>       if (!domain.domain.includes(".")) {
>         alert("Please enter a valid domain");
>         return false;
>       }
>       return true;
>     },
>     onAfter: (domain) => {
>       analytics.track("Domain Created", { domain: domain.domain });
>     },
>   }}
> />
> ```
>
> ***
>
> **verifyAction**
>
> **Type:** `ComponentAction<Domain>`
>
> Controls the domain verification flow. Domain verification proves ownership via DNS TXT record.
>
> **Properties:**
>
> * `disabled`—Disable the verify button
> * `onBefore(domain)`—Runs before the verification attempt. Return `false` to prevent verification (for example, to confirm DNS is configured).
> * `onAfter(domain)`—Runs after the domain is successfully verified. Use this to show a success notification.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   verifyAction={{
>     onBefore: (domain) => {
>       return confirm(
>         `Verify ${domain.domain}? Make sure your DNS record is configured.`,
>       );
>     },
>     onAfter: (domain) => {
>       toast.success(`${domain.domain} verified successfully!`);
>     },
>   }}
> />
> ```
>
> ***
>
> **deleteAction**
>
> **Type:** `ComponentAction<Domain>`
>
> Controls domain deletion. Recommended to use `onBefore` for confirmation since this is destructive.
>
> **Properties:**
>
> * `disabled`—Disable the delete button
> * `onBefore(domain)`—Runs before the deletion. Return `false` to prevent deletion (recommended for confirmation dialogs).
> * `onAfter(domain)`—Runs after the domain is successfully deleted. Use this to track the event or show a notification.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   deleteAction={{
>     onBefore: (domain) => {
>       return confirm(`Delete ${domain.domain}? This cannot be undone.`);
>     },
>     onAfter: (domain) => {
>       analytics.track("Domain Deleted", { domain: domain.domain });
>     },
>   }}
> />
> ```
>
> ***
>
> **associateToProviderAction**
>
> **Type:** `ComponentAction<Domain, IdentityProvider>`
>
> Controls associating a verified domain with an SSO provider. Only verified domains can be associated, and a domain can be associated with only one connection at a time. To use a different connection, remove the current one first, then select a new one and select **Save**.
>
> **Properties:**
>
> * `disabled`—Disable the associate action
> * `onBefore(domain, provider)`—Runs before the association. Return `false` to prevent the association.
> * `onAfter(domain, provider)`—Runs after the domain is successfully associated with the provider.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   associateToProviderAction={{
>     onAfter: (domain, provider) => {
>       console.log(`Associated ${domain.domain} with ${provider.name}`);
>     },
>   }}
> />
> ```
>
> ***
>
> **deleteFromProviderAction**
>
> **Type:** `ComponentAction<Domain, IdentityProvider>`
>
> Controls removing a domain's association with an SSO provider. It runs when a user selects **Remove** next to the associated connection in the configure dialog.
>
> **Properties:**
>
> * `disabled`—Disable the disassociate action
> * `onBefore(domain, provider)`—Runs before the removal. Return `false` to prevent the removal.
> * `onAfter(domain, provider)`—Runs after the domain is successfully removed from the provider.
>
> ***
>
> **onOpenProvider / onCreateProvider**
>
> **Type:** `(provider: IdentityProvider) => void` / `() => void`
>
> Navigation handlers for the domain configuration modal. When users configure a domain's provider associations:
>
> * `onOpenProvider`—Called when a user selects **View** next to the connection associated with the domain. The **View** button is shown only when you provide this handler.
> * `onCreateProvider`—Called when a user selects **Add a Provider** because the organization has no connections
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   onOpenProvider={(provider) => {
>     router.push(`/providers/${provider.id}`);
>   }}
>   onCreateProvider={() => {
>     router.push("/providers/create");
>   }}
> />
> ```
>
> ***
>
> ### Customization props
>
> Customization props let you adapt the component to your brand, locale, and validation requirements without modifying source code.
>
> <table>
>   <thead>
>     <tr>
>       <th>Prop</th>
>       <th>Type</th>
>       <th>Description</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `schema`
>       </td>
>
>       <td>
>         `DomainTableSchema`
>       </td>
>
>       <td>
>         Domain URL validation rules.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `customMessages`
>       </td>
>
>       <td>
>         `Partial<DomainTableMainMessages>`
>       </td>
>
>       <td>
>         i18n text overrides.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `styling`
>       </td>
>
>       <td>
>         `ComponentStyling`
>       </td>
>
>       <td>
>         CSS variables and class overrides.
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> **schema**
>
> Set custom validation rules for domain URL input.
>
> > [accordion] Available Schema Fields
> >
> > **create.domainUrl**—Domain URL validation—`regex`—Custom regex pattern -
> > `errorMessage`—Custom error message
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   schema={{
>     create: {
>       domainUrl: {
>         regex: /^[a-z0-9.-]+\.[a-z]{2,}$/,
>         errorMessage: "Enter a valid domain (example.com)",
>       },
>     },
>   }}
> />
> ```
>
> ***
>
> **customMessages**
>
> Customize all text and translations. All fields are optional and use defaults if not provided.
>
> > [accordion] Available Messages
> >
> > **header**—Component header
> >
> > * `title`, `description`, `create_button_text`
> >
> > **table**—Table display
> >
> > * `empty_message`
> > * `columns.domain`, `columns.status`
> > * `actions.configure_button_text`, `actions.view_button_text`, `actions.verify_button_text`, `actions.delete_button_text`
> >
> > **create.modal**—Create domain modal
> >
> > * `title`
> > * `field.label`, `field.placeholder`, `field.error`
> > * `actions.cancel_button_text`, `actions.create_button_text`
> >
> > **verify.modal**—Verify domain modal
> >
> > * `title`
> > * `txt_record_name.label`, `txt_record_content.label`, `verification_status.label`
> > * `actions.verify_button_text`, `actions.done_button_text`
> >
> > **delete.modal**—Delete confirmation
> >
> > * `title`
> > * `description.pending`, `description.verified`
> > * `actions.cancel_button_text`, `actions.delete_button_text`
> >
> > **configure.modal**—Provider configuration
> >
> > * `title`, `description`, `assigned_description`, `no_connection_status`
> > * `field.label`, `field.placeholder`
> > * `table.empty_message`
> > * `table.actions.add_provider_button_text`, `table.actions.view_provider_button_text`
> > * `actions.close_button_text`, `actions.save_button_text`
> > * `actions.remove_button_text`, `actions.remove_button_aria_label`
> >
> > **notifications**—API responses
> >
> > * `fetch_providers_error`, `fetch_domains_error`
> > * `domain_create_success`, `domain_create_error`
> > * `domain_verify_success`, `domain_verify_error`, `domain_verify_verification_failed`
> > * `domain_delete_success`, `domain_delete_error`
> > * `domain_associate_provider_success`, `domain_associate_provider_error`
> > * `domain_delete_provider_success`, `domain_delete_provider_error`
> >
> > **shared**—Shared messages
> >
> > * `domain_statuses.pending`, `domain_statuses.verified`, `domain_statuses.failed`
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   customMessages={{
>     header: {
>       title: "Manage Domains",
>       description: "Configure and verify organization domains",
>       create_button_text: "Add Domain",
>     },
>     table: {
>       empty_message: "No domains yet. Add one to begin.",
>     },
>     notifications: {
>       domain_create_success: "Domain added successfully!",
>       domain_verify_success: "Domain verified!",
>       domain_delete_success: "Domain removed.",
>     },
>   }}
> />
> ```
>
> ***
>
> **styling**
>
> Customize appearance with CSS variables and class overrides. Supports theme-aware styling.
>
> > [accordion] Available Styling Options
> >
> > **Variables**—CSS custom properties
> >
> > * `common`—Applied to all themes
> > * `light`—Light theme only
> > * `dark`—Dark theme only
> >
> > **Classes**—Component class overrides
> >
> > * `DomainTable-header`
> > * `DomainTable-table`
> > * `DomainTable-tableActions`
> > * `DomainTable-createModal`
> > * `DomainTable-configureModal`
> > * `DomainTable-deleteModal`
> > * `DomainTableConfigureModal-dialogContent`
> > * `DomainTableVerifyModal-dialogContent`
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   styling={{
>     variables: {
>       common: { "--font-size-title": "1rem" },
>       light: { "--color-primary": "#4f46e5" },
>     },
>     classes: {
>       "DomainTable-header": "mb-6",
>       "DomainTable-table": "rounded-lg shadow-sm",
>     },
>   }}
> />
> ```
>
> ***
>
> ## Advanced customization
>
> ### Available hooks
>
> These hooks provide the underlying logic without any UI. Use them to build completely custom interfaces while leveraging the Auth0 API integration.
>
> <table>
>   <thead>
>     <tr>
>       <th>Hook</th>
>       <th>Description</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `useDomainTable`
>       </td>
>
>       <td>Data + API layer (fetch, create, verify, delete, associate)</td>
>     </tr>
>   </tbody>
> </table>

> [tab] shadcn
>
> ## Setup requirements
>
> **Auth0 Configuration Required**—Ensure your tenant is configured with the
> My Organization API. [View setup guide
> →](/docs/docs/get-started/universal-components/web/components/build-delegated-admin#configure-auth0-dashboard)
>
> ## Install the component
>
> Install the component via the shadcn CLI using the GitHub Registry:
>
> ```bash wrap lines theme={null}
> npx shadcn@latest add auth0/auth0-ui-components/react/my-organization/domain-table
> ```
>
> The shadcn CLI also installs the `@auth0/universal-components-core`
> dependency for shared utilities and Auth0 integration.
> Requires **shadcn CLI v2.5.0+**.
>
> **Legacy Vercel registry retired**: The Vercel-hosted registry
> (`https://auth0-universal-components.vercel.app/r/...`) was retired on
> **September 17, 2026**. Use the GitHub Registry path above.
>
> ## Get started
>
> ```tsx wrap lines theme={null}
> import { DomainTable } from "@/components/auth0/my-organization/domain-table";
>
> export function DomainsPage() {
>   return <DomainTable />;
> }
> ```
>
> > [accordion] Full integration example
> >
> > ```tsx lines theme={null}
> > import React from "react";
> > import { DomainTable } from "@/components/auth0/my-organization/domain-table";
> > import { Auth0Provider } from "@auth0/auth0-react";
> > import { Auth0ComponentProvider } from "@auth0/universal-components-react/spa";
> > import { useNavigate } from "react-router-dom";
> >
> > function DomainsManagementPage() {
> >   const navigate = useNavigate();
> >
> >   return (
> >     <div className="max-w-6xl mx-auto p-6">
> >       <DomainTable
> >         schema={{
> >           create: {
> >             domainUrl: {
> >               regex: /^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/i,
> >               errorMessage: "Please enter a valid domain (e.g., example.com)",
> >             },
> >           },
> >         }}
> >         createAction={{
> >           onBefore: (domain) => {
> >             if (!domain.domain.includes(".")) {
> >               alert("Please enter a valid domain with a TLD");
> >               return false;
> >             }
> >             return true;
> >           },
> >           onAfter: (domain) => console.log("Domain created:", domain),
> >         }}
> >         verifyAction={{
> >           onAfter: (domain) => {
> >             console.log("Domain verified:", domain.domain);
> >           },
> >         }}
> >         deleteAction={{
> >           onBefore: (domain) => {
> >             return confirm(`Delete ${domain.domain}?`);
> >           },
> >         }}
> >         onOpenProvider={(provider) => {
> >           navigate(`/providers/${provider.id}`);
> >         }}
> >         onCreateProvider={() => {
> >           navigate("/providers/create");
> >         }}
> >         customMessages={{
> >           header: {
> >             title: "Domain Management",
> >             description: "Add and verify domains for your organization",
> >             create_button_text: "Add New Domain",
> >           },
> >         }}
> >         styling={{
> >           variables: {
> >             common: { "--font-size-label": "12px" },
> >             light: { "--color-primary": "#0066cc" },
> >           },
> >           classes: {
> >             "DomainTable-header": "shadow-lg rounded-xl",
> >           },
> >         }}
> >       />
> >     </div>
> >   );
> > }
> >
> > export default function App() {
> >   const domain = "your-domain.auth0.com";
> >
> >   return (
> >     <Auth0Provider
> >       domain={domain}
> >       clientId="your-client-id"
> >       authorizationParams={{
> >         redirect_uri: window.location.origin,
> >       }}
> >       interactiveErrorHandler="popup" // Required to handle step-up auth challenges via Universal Login popup
> >     >
> >       <Auth0ComponentProvider>
> >         <DomainsManagementPage />
> >       </Auth0ComponentProvider>
> >     </Auth0Provider>
> >   );
> > }
> >
> > ```
>
> ## Props
>
> ### Display props
>
> Display props control how the component renders without affecting its behavior. Use these to hide sections or enable read-only mode.
>
> <table>
>   <thead>
>     <tr>
>       <th>Prop</th>
>       <th>Type</th>
>       <th>Description</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `readOnly`
>       </td>
>
>       <td>
>         `boolean`
>       </td>
>
>       <td>
>         Disable all domain operations. Default: `false`
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `hideHeader`
>       </td>
>
>       <td>
>         `boolean`
>       </td>
>
>       <td>
>         Hide the header section. Default: `false`
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> ***
>
> ### Action props
>
> Action props handle user interactions and define what happens when users perform domain operations. Use lifecycle hooks (`onBefore`, `onAfter`) to integrate with your application's routing and analytics.
>
> <table>
>   <thead>
>     <tr>
>       <th>Prop</th>
>       <th>Type</th>
>       <th>Description</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `createAction`
>       </td>
>
>       <td>
>         `ComponentAction<Domain>`
>       </td>
>
>       <td>
>         Create domain action.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `verifyAction`
>       </td>
>
>       <td>
>         `ComponentAction<Domain>`
>       </td>
>
>       <td>
>         Verify domain action.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `deleteAction`
>       </td>
>
>       <td>
>         `ComponentAction<Domain>`
>       </td>
>
>       <td>
>         Delete domain action.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `associateToProviderAction`
>       </td>
>
>       <td>
>         `ComponentAction<Domain, IdentityProvider>`
>       </td>
>
>       <td>
>         Associate domain to provider.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `deleteFromProviderAction`
>       </td>
>
>       <td>
>         `ComponentAction<Domain, IdentityProvider>`
>       </td>
>
>       <td>
>         Remove domain from provider.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `onOpenProvider`
>       </td>
>
>       <td>
>         `(provider: IdentityProvider) => void`
>       </td>
>
>       <td>
>         Navigate to provider from configure modal.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `onCreateProvider`
>       </td>
>
>       <td>
>         `() => void`
>       </td>
>
>       <td>
>         Navigate to create provider flow.
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> **createAction**
>
> **Type:** `ComponentAction<Domain>`
>
> Controls the domain creation flow. Use `onAfter` to track when new domains are added.
>
> **Properties:**
>
> * `disabled`—Disable the "Add Domain" button
> * `onBefore(domain)`—Runs before the domain is created. Return `false` to prevent creation (for example, if the domain format is invalid).
> * `onAfter(domain)`—Runs after the domain is successfully created. Use this to show a notification or track the event.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   createAction={{
>     onBefore: (domain) => {
>       // Validate domain format
>       if (!domain.domain.includes(".")) {
>         alert("Please enter a valid domain");
>         return false;
>       }
>       return true;
>     },
>     onAfter: (domain) => {
>       analytics.track("Domain Created", { domain: domain.domain });
>     },
>   }}
> />
> ```
>
> ***
>
> **verifyAction**
>
> **Type:** `ComponentAction<Domain>`
>
> Controls the domain verification flow. Domain verification proves ownership via DNS TXT record.
>
> **Properties:**
>
> * `disabled`—Disable the verify button
> * `onBefore(domain)`—Runs before the verification attempt. Return `false` to prevent verification (for example, to confirm DNS is configured).
> * `onAfter(domain)`—Runs after the domain is successfully verified. Use this to show a success notification.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   verifyAction={{
>     onBefore: (domain) => {
>       return confirm(
>         `Verify ${domain.domain}? Make sure your DNS record is configured.`,
>       );
>     },
>     onAfter: (domain) => {
>       toast.success(`${domain.domain} verified successfully!`);
>     },
>   }}
> />
> ```
>
> ***
>
> **deleteAction**
>
> **Type:** `ComponentAction<Domain>`
>
> Controls domain deletion. Recommended to use `onBefore` for confirmation since this is destructive.
>
> **Properties:**
>
> * `disabled`—Disable the delete button
> * `onBefore(domain)`—Runs before the deletion. Return `false` to prevent deletion (recommended for confirmation dialogs).
> * `onAfter(domain)`—Runs after the domain is successfully deleted. Use this to track the event or show a notification.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   deleteAction={{
>     onBefore: (domain) => {
>       return confirm(`Delete ${domain.domain}? This cannot be undone.`);
>     },
>     onAfter: (domain) => {
>       analytics.track("Domain Deleted", { domain: domain.domain });
>     },
>   }}
> />
> ```
>
> ***
>
> **associateToProviderAction**
>
> **Type:** `ComponentAction<Domain, IdentityProvider>`
>
> Controls associating a verified domain with an SSO provider. Only verified domains can be associated, and a domain can be associated with only one connection at a time. To use a different connection, remove the current one first, then select a new one and select **Save**.
>
> **Properties:**
>
> * `disabled`—Disable the associate action
> * `onBefore(domain, provider)`—Runs before the association. Return `false` to prevent the association.
> * `onAfter(domain, provider)`—Runs after the domain is successfully associated with the provider.
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   associateToProviderAction={{
>     onAfter: (domain, provider) => {
>       console.log(`Associated ${domain.domain} with ${provider.name}`);
>     },
>   }}
> />
> ```
>
> ***
>
> **deleteFromProviderAction**
>
> **Type:** `ComponentAction<Domain, IdentityProvider>`
>
> Controls removing a domain's association with an SSO provider. It runs when a user selects **Remove** next to the associated connection in the configure dialog.
>
> **Properties:**
>
> * `disabled`—Disable the disassociate action
> * `onBefore(domain, provider)`—Runs before the removal. Return `false` to prevent the removal.
> * `onAfter(domain, provider)`—Runs after the domain is successfully removed from the provider.
>
> ***
>
> **onOpenProvider / onCreateProvider**
>
> **Type:** `(provider: IdentityProvider) => void` / `() => void`
>
> Navigation handlers for the domain configuration modal. When users configure a domain's provider associations:
>
> * `onOpenProvider`—Called when a user selects **View** next to the connection associated with the domain. The **View** button is shown only when you provide this handler.
> * `onCreateProvider`—Called when a user selects **Add a Provider** because the organization has no connections
>
> **Example:**
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   onOpenProvider={(provider) => {
>     navigate(`/providers/${provider.id}`);
>   }}
>   onCreateProvider={() => {
>     navigate("/providers/create");
>   }}
> />
> ```
>
> ***
>
> ### Customization props
>
> Customization props let you adapt the component to your brand, locale, and validation requirements without modifying source code.
>
> <table>
>   <thead>
>     <tr>
>       <th>Prop</th>
>       <th>Type</th>
>       <th>Description</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `schema`
>       </td>
>
>       <td>
>         `DomainTableSchema`
>       </td>
>
>       <td>
>         Domain URL validation rules.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `customMessages`
>       </td>
>
>       <td>
>         `Partial<DomainTableMainMessages>`
>       </td>
>
>       <td>
>         i18n text overrides.
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `styling`
>       </td>
>
>       <td>
>         `ComponentStyling`
>       </td>
>
>       <td>
>         CSS variables and class overrides.
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> **schema**
>
> Set custom validation rules for domain URL input.
>
> > [accordion] Available Schema Fields
> >
> > **create.domainUrl**—Domain URL validation—`regex`—Custom regex pattern
> >
> > * `errorMessage`—Custom error message
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   schema={{
>     create: {
>       domainUrl: {
>         regex: /^[a-z0-9.-]+\.[a-z]{2,}$/,
>         errorMessage: "Enter a valid domain (example.com)",
>       },
>     },
>   }}
> />
> ```
>
> ***
>
> **customMessages**
>
> Customize all text and translations. All fields are optional and use defaults if not provided.
>
> > [accordion] Available Messages
> >
> > **header**—Component header
> >
> > * `title`, `description`, `create_button_text`
> >
> > **table**—Table display
> >
> > * `empty_message`
> > * `columns.domain`, `columns.status`
> > * `actions.configure_button_text`, `actions.view_button_text`, `actions.verify_button_text`, `actions.delete_button_text`
> >
> > **create.modal**—Create domain modal
> >
> > * `title`
> > * `field.label`, `field.placeholder`, `field.error`
> > * `actions.cancel_button_text`, `actions.create_button_text`
> >
> > **verify.modal**—Verify domain modal
> >
> > * `title`
> > * `txt_record_name.label`, `txt_record_content.label`, `verification_status.label`
> > * `actions.verify_button_text`, `actions.done_button_text`
> >
> > **delete.modal**—Delete confirmation
> >
> > * `title`
> > * `description.pending`, `description.verified`
> > * `actions.cancel_button_text`, `actions.delete_button_text`
> >
> > **configure.modal**—Provider configuration
> >
> > * `title`, `description`, `assigned_description`, `no_connection_status`
> > * `field.label`, `field.placeholder`
> > * `table.empty_message`
> > * `table.actions.add_provider_button_text`, `table.actions.view_provider_button_text`
> > * `actions.close_button_text`, `actions.save_button_text`
> > * `actions.remove_button_text`, `actions.remove_button_aria_label`
> >
> > **notifications**—API responses
> >
> > * `fetch_providers_error`, `fetch_domains_error`
> > * `domain_create_success`, `domain_create_error`
> > * `domain_verify_success`, `domain_verify_error`, `domain_verify_verification_failed`
> > * `domain_delete_success`, `domain_delete_error`
> > * `domain_associate_provider_success`, `domain_associate_provider_error`
> > * `domain_delete_provider_success`, `domain_delete_provider_error`
> >
> > **shared**—Shared messages
> >
> > * `domain_statuses.pending`, `domain_statuses.verified`, `domain_statuses.failed`
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   customMessages={{
>     header: {
>       title: "Manage Domains",
>       description: "Configure and verify organization domains",
>       create_button_text: "Add Domain",
>     },
>     table: {
>       empty_message: "No domains yet. Add one to begin.",
>     },
>     notifications: {
>       domain_create_success: "Domain added successfully!",
>       domain_verify_success: "Domain verified!",
>       domain_delete_success: "Domain removed.",
>     },
>   }}
> />
> ```
>
> ***
>
> **styling**
>
> Customize appearance with CSS variables and class overrides. Supports theme-aware styling.
>
> > [accordion] Available Styling Options
> >
> > **Variables**—CSS custom properties
> >
> > * `common`—Applied to all themes
> > * `light`—Light theme only
> > * `dark`—Dark theme only
> >
> > **Classes**—Component class overrides
> >
> > * `DomainTable-header`
> > * `DomainTable-table`
> > * `DomainTable-tableActions`
> > * `DomainTable-createModal`
> > * `DomainTable-configureModal`
> > * `DomainTable-deleteModal`
> > * `DomainTableConfigureModal-dialogContent`
> > * `DomainTableVerifyModal-dialogContent`
>
> ```tsx wrap lines theme={null}
> <DomainTable
>   styling={{
>     variables: {
>       common: { "--font-size-title": "1rem" },
>       light: { "--color-primary": "#4f46e5" },
>     },
>     classes: {
>       "DomainTable-header": "mb-6",
>       "DomainTable-table": "rounded-lg shadow-sm",
>     },
>   }}
> />
> ```
>
> ***
>
> ## Advanced customization
>
> ### Available hooks
>
> These hooks provide the underlying logic without any UI. Use them to build completely custom interfaces while leveraging the Auth0 API integration.
>
> <table>
>   <thead>
>     <tr>
>       <th>Hook</th>
>       <th>Description</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `useDomainTable`
>       </td>
>
>       <td>Data + API layer (fetch, create, verify, delete, associate)</td>
>     </tr>
>   </tbody>
> </table>
