UNPKG

@vonage/vivid-react

Version:

Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings

54 lines (53 loc) 2.19 kB
import React, { ReactNode, SyntheticEvent } from 'react'; import '@vonage/vwc-menu'; /** * @param {HTMLElement | null} anchor * @param {boolean} open * @param {boolean} quick * @param {boolean} wrapFocus * @param {"menu" | "listbox"} innerRole * @param {"TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT" | "TOP_START" | "TOP_END" | "BOTTOM_START" | "BOTTOM_END"} corner * @param {number | null} x * @param {number | null} y * @param {boolean} absolute * @param {boolean} multi * @param {boolean} activatable * @param {boolean} fixed * @param {boolean} forceGroupSelection * @param {boolean} fullwidth * @param {MenuCorner} menuCorner * @param {boolean} stayOpenOnBodyClick * @param {"NONE" | "LIST_ROOT" | "FIRST_ITEM" | "LAST_ITEM"} defaultFocus * @param {VWCList | null} listElement */ declare const VwcMenu: (props: { children?: ReactNode; slot?: string | undefined; id?: string | undefined; style?: React.CSSProperties | undefined; ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined; onSelected?: ((event: SyntheticEvent) => void) | undefined; onAction?: ((event: SyntheticEvent) => void) | undefined; onItemsUpdated?: ((event: SyntheticEvent) => void) | undefined; onOpened?: ((event: SyntheticEvent) => void) | undefined; onClosed?: ((event: SyntheticEvent) => void) | undefined; anchor?: any; open?: boolean | undefined; quick?: boolean | undefined; wrapFocus?: boolean | undefined; innerRole?: "menu" | "listbox" | undefined; corner?: "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT" | "TOP_START" | "TOP_END" | "BOTTOM_START" | "BOTTOM_END" | undefined; x?: number | undefined; y?: number | undefined; absolute?: boolean | undefined; multi?: boolean | undefined; activatable?: boolean | undefined; fixed?: boolean | undefined; forceGroupSelection?: boolean | undefined; fullwidth?: boolean | undefined; menuCorner?: any; stayOpenOnBodyClick?: boolean | undefined; defaultFocus?: "NONE" | "LIST_ROOT" | "FIRST_ITEM" | "LAST_ITEM" | undefined; listElement?: any; }) => JSX.Element; export default VwcMenu;