Client control

DropdownMenu API

DropdownMenu provides a small command surface for grouped links and actions without pulling in a large UI dependency.

Preview

Import

import { DropdownContent, DropdownItem, DropdownMenu, DropdownTrigger } from "@axonyx/react/client";

Props

PropTypeDefaultDescription
align"start" | "end""end"Controls whether the menu opens from the left or right edge of the trigger.
hrefstringundefinedTurns DropdownItem into a menu link.
onClick() => voidundefinedRuns an action item and closes the menu.
classNamestringundefinedExtra class for DropdownItem.
icon / meta / toneReactNode / ReactNode / "default" | "danger"undefined / undefined / "default"Adds richer admin menu rows and destructive styling.

CSS contract

.ax-dropdown
.ax-dropdown__trigger
.ax-dropdown__menu
.ax-dropdown__label
.ax-dropdown__separator
.ax-dropdown__item
[data-align]
[aria-expanded]
Small menus first

Use DropdownMenu for concise command sets. Large navigations should stay visible or use a drawer.