Skip to content

Org Menu

Menus and commandsMIT
View in Storybook

Organization / workspace switcher dropdown with avatar, name, and create-new.

bun add @otfdashkit/ui

Preview

Org Menu

Code

import { OrgMenu } from '@otfdashkit/ui'

export function Example() {
  return (
    <div className="p-4"><OrgMenu /></div>
  )
}

Free with the SDK. This block ships in @otfdashkit/ui under the MIT license.

Props

Props declared in the OrgMenu source. Inherited HTML attributes are not listed.

PropTypeDefaultDescription
classNamestring
currentOrgIdstringControlled mode — pass to manage selection externally. If omitted, the menu manages its own state.
defaultOrgIdstringDefault selection in uncontrolled mode. Defaults to the first org.
onCreateOrg() => void
onSwitch(orgId: string) => void