ortaui
  1. Components
  2. Overlays

Dropdown Menu

Menu with the 160ms open motion and one highlight that slides over 250ms with hover and keyboard. Check and radio items show a check.

Installation#

npx shadcn add @ortaui/dropdown-menu

Examples#

Default#

Open#

API reference#

PropTypeDefaultDescription
open / defaultOpenboolean-Controlled or uncontrolled state.
onOpenChange(open: boolean) => void-Called when the open state changes.
side / align"top" | "right" | "bottom" | "left" / "start" | "center" | "end"-Placement relative to the trigger.
sideOffsetnumber8Gap to the trigger in px.
variant"default" | "destructive"-DropdownMenuItem.
renderReactElement-On DropdownMenuTrigger: render as a Button. DropdownMenuLinkItem renders links.
classNamestring-Merged with the component classes via cn().