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 | — |
open | boolean | — | — |
defaultOpen | boolean | | — |
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