OrganizationProfile
Organisation management with members, settings, security, and custom pages.
The <OrganizationProfile> component provides a tabbed organisation management interface: overview, members, settings, and enterprise SSO status. It uses the Customer API with the signed-in user's access token.
Installation
pnpm add @wocha/ui @wocha/reactOr scaffold with the CLI
npx @wocha/cli init --framework nextjsBasic usage
When orgId is omitted, the active organisation from auth context is used.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
orgId | string | Active org from context | Organisation ID to manage |
appearance | WochaAppearance | — | Visual customisation |
className | string | — | Additional class name |
sections | OrgProfileSection[] | All built-in sections | Sections to display |
activeSection | OrgProfileNavId | "overview" | Currently active section |
onSectionChange | (section) => void | — | Called when the user changes section |
fallback | ReactNode | — | Shown while organisation data is loading |
children | ReactNode | — | Composition children (OrganizationProfile.Page, OrganizationProfile.Link) |
OrgProfileSection is "overview" | "members" | "settings" | "security".
Composition API
Add custom organisation pages:
Modal and navigation modes
Open via <OrgSwitcher> rather than embedding directly:
Theming
Framework notes
Requires apiUrl on your provider. Works in client components for both React and Next.js.