Org Menu
Menus and commandsMITOrganization / workspace switcher dropdown with avatar, name, and create-new.
bun add @otfdashkit/ui
Preview
Org MenuMenus and commands
Code
@otfdashkit/uiimport { 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.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | ||
| currentOrgId | string | Controlled mode — pass to manage selection externally. If omitted, the menu manages its own state. | |
| defaultOrgId | string | Default selection in uncontrolled mode. Defaults to the first org. | |
| onCreateOrg | () => void | ||
| onSwitch | (orgId: string) => void |