OrganizationList
List organisation memberships and pending invitations with org switching.
The <OrganizationList> component displays the user's organisation memberships and pending invitations. Users can switch active organisations and optionally create new ones.
Installation
pnpm add @wocha/ui @wocha/reactOr scaffold with the CLI
npx @wocha/cli init --framework nextjsBasic usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
appearance | WochaAppearance | — | Visual customisation |
className | string | — | Additional class name |
showCreateButton | boolean | false | Show a "Create organisation" button in the header |
onCreateClick | () => void | — | Called when the create button is clicked |
afterSelectUrl | string | — | Redirect URL after switching organisation |
Theming
Framework notes
Requires apiUrl and an authenticated session. Fetches data from GET /v1/organisations.