Skip to Content

Dropdown

Recursive action menu. Technical tree/positioning components remain internal.

Использование

activation

Позиционирование

dir

API

ПропТипПо умолчаниюОписание
trigger*ReactElement<any, string | JSXElementConstructor<any>>——
items*readonly DropdownEntry[]——
activation"contextMenu" | "click"click—
placement"top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right"bottom-left—
openboolean——
defaultOpenboolean—
onOpenChange(open: boolean) => void——
onOpen() => void——
onClose() => void——
onSelect(id: string, event: MouseEvent<HTMLDivElement, MouseEvent>) => void——
dir"ltr" | "rtl"—Explicit direction; otherwise inherited from the trigger.
Last updated on