Roles Menu
InputRole assignment dropdown with descriptions and current-role check.
Roles MenuInput · Web
Loading Storybook preview…
Installation
bun add @otfdashkit/ui
Usage
Import Roles Menu from @otfdashkit/ui.
Code
// Roles Menu — Role assignment dropdown with descriptions and current-role check.
//
// Install:
// bun add @otfdashkit/ui
import { RolesMenu } from '@otfdashkit/ui'
export function Example() {
return (
<RolesMenu>
{/* your content */}
</RolesMenu>
)
}Props
Props declared in the RolesMenu source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | ||
| onChange | (role: string) => void | ||
| value | string | 'member' |