Skip to main content

OrganizationSwitcher

Dropdown menu for switching between organizations and workspaces. Also allows creating new organizations and workspaces.
import { OrganizationSwitcher } from "@wacht/nextjs";

export default function Layout() {
  return (
    <header>
      <OrganizationSwitcher />
    </header>
  );
}

Hide Personal Account

<OrganizationSwitcher showPersonal={false} />

Features

  • Organization and workspace lists with active indicators
  • Create organization and workspace options
  • Manage and leave organization options
  • Eligibility restriction warnings

Params

showPersonal
boolean
default:"true"
Whether to show the “Personal account” option.