<OrganizationSwitcher/>
import { OrganizationSwitcher } from '@auth/clerk'
- <OrganizationSwitcher />
Button with the current organization icon and name that provides a dropdown menu (web) or modal (native) with options to switch to another organization.
Works on both web and React Native (Expo) platforms, but with a smaller API surface / config on Mobile.
Usage in Next.js
In Next.js, the OrganizationSwitcher
component renders the exact same Clerk UI component from @clerk/nextjs
:
There are no limitations so anything in the Clerk OrganizationSwitcher docs should work on web.
Usage in Expo apps
In Expo, the OrganizationSwitcher trigger stays similar, but instead of a dropdown menu, it opens a modal with only the other organizations to switch to.
Notably, the ‘Create Organization’ and ‘Manage Organization’ options are not available in Expo, but are on the web.