Preview of the Organization Details Edit component
Setup Requirements
Auth0 Configuration Required - Ensure your tenant is configured with the
My Organization API. View setup guide
→
Installation
Running the shadcn command also installs the @auth0/universal-components-core
dependency for shared utilities and Auth0 integration.
Quick Start
Full integration example
Full integration example
While this example uses a React SPA, the prop configurations (schema, customMessages, styling, etc.) apply equally to Next.js and shadcn setups.
Props
Core Props
Core props are fundamental to the component’s operation.OrganizationDetailsEdit has no required props - it automatically loads the current organization’s details from the Auth0 API.
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 form inputs. Default: false |
hideHeader | boolean | Hide the header section. Default: false |
Action Props
Action props handle user interactions and define what happens when users save or cancel changes. Use lifecycle hooks (onBefore, onAfter) to integrate with your application’s routing and analytics.
saveAction
Type:ComponentAction<OrganizationPrivate>
Controls the save flow when users submit organization changes. Use onAfter to navigate away after successful save.
Properties:
disabled- Disable the save button (e.g., while another operation is in progress)onBefore(data)- Called before save. Returnfalseto cancel. Use for validation or confirmation.onAfter(data)- Called after successful save. Use for navigation or analytics.
cancelAction
Type:ComponentAction<OrganizationPrivate>
Controls the cancel/discard flow. Use this to handle when users want to abandon their changes.
Properties:
disabled- Disable the cancel buttononBefore(data)- Called before cancel. Returnfalseto prevent. Use for “unsaved changes” confirmation.onAfter(data)- Called after cancel is confirmed.
backButton
Type:{ icon?: LucideIcon; onClick: (e: MouseEvent) => void }
Configures the back button in the component header. Use this to navigate back to your organization overview or previous page.
Properties:
icon- Custom Lucide icon component (optional, defaults to ArrowLeft)onClick- Click handler for navigation
Customization Props
Customization props let you adapt the component to your brand, locale, and validation requirements without modifying source code.schema
Set custom validation rules for organization detail fields.Available Schema Fields
Available Schema Fields
All schema fields support:
regex, errorMessage, minLength, maxLength, requireddetails.name - Organization internal name
details.displayName - Organization display name
details.color - Brand color (hex format)
details.logoURL - Logo URLcustomMessages
Customize all text and translations. All fields are optional and use defaults if not provided.Available Messages
Available Messages
header - Component header
title,description,back_button_text
fields.name-label,placeholder,helper_text,errorfields.display_name-label,placeholder,helper_text,errorfields.color-label,placeholder,helper_text,errorfields.logo_url-label,placeholder,helper_text,error
save_button_text,cancel_button_text
save_success,save_error,general_error
styling
Customize appearance with CSS variables and class overrides. Supports theme-aware styling.Available Styling Options
Available Styling Options
Variables - CSS custom properties
common- Applied to all themeslight- Light theme onlydark- Dark theme only
OrganizationDetailsEdit-headerOrganizationDetailsEdit-formOrganizationDetailsEdit-actions
Advanced Customization
TheOrganizationDetailsEdit component is composed of smaller subcomponents and hooks. You can import them individually to build custom organization editing workflows if you use shadcn.
Available Subcomponents
For advanced use cases, you can import individual subcomponents to build custom organization editing interfaces.| Component | Description |
|---|---|
OrganizationForm | Main form component with all fields |
ColorPickerField | Brand color selection field |
LogoUploadField | Logo URL input with preview |
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 |
|---|---|
useOrganizationDetailsEdit | Organization editing logic and API integration |