The library is still in early development. Breaking changes and bugs may occur without prior notice. Thanks for your interest in using the library!
A versatile component for creating dropdown menus with customizable options.
Import the DropdownMenu
, DropdownMenuTrigger
, DropdownMenuContent
, and
DropdownMenuItem
components from @bun-ui/react
and use them to create a
dropdown menu:
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@bun-ui/react"
<DropdownMenu>
<DropdownMenuTrigger>
<button>Open Menu</button>
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuItem>Option 1</DropdownMenuItem>
<DropdownMenuItem>Option 2</DropdownMenuItem>
<DropdownMenuItem>Option 3</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
Prop | Type | Default | Description |
---|---|---|---|
disablePortal | boolean | - | If true the menu will not be rendered in a portal. |
Prop | Type | Default | Description |
---|---|---|---|
disablePortal | boolean | - | If true the menu will not be rendered in a portal. |