@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
43 lines (42 loc) • 2.23 kB
TypeScript
import React, { ReactNode, SyntheticEvent } from 'react';
/** VwcMenu
* For more info on this Vivid element please visit https://vivid.deno.dev/components/menu
* @param {number | null} offset - Adds offset to the popup **attribute** `offset`
* @param {Placement | undefined} placement - placement of the menu **attribute** `placement`
* @param {'auto' | 'legacy' | 'off' | undefined} trigger - Controls how the menu opens and closes itself. **attribute** `trigger`
* @param {boolean} autoDismiss - indicates whether the menu will automatically close when focus moves away from it. **attribute** `auto-dismiss`
* @param {Strategy | undefined} positionStrategy - The strategy-absolute attribute. **attribute** `position-strategy`
* @param {boolean} open - indicates whether the menu is open **attribute** `open`
* @param _onFocusout
* @param {HTMLElement[] | undefined} actionItemsSlottedContent
* @param {AnchorType | undefined} anchor - ID or direct reference to the component's anchor element. **attribute** `anchor`
* @param {'delegate'} _vividAriaBehaviour
* @param {string} VIVID_VERSION - The current version of the Vivid library, which is useful for debugging.
It can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.
* @param {string} componentName - Core component name, without prefix
*/
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;
onOpen?: ((event: SyntheticEvent) => void) | undefined;
onClose?: ((event: SyntheticEvent) => void) | undefined;
offset?: number | undefined;
placement?: any;
trigger?: any;
autoDismiss?: boolean | undefined;
positionStrategy?: any;
open?: boolean | undefined;
_onFocusout?: any;
actionItemsSlottedContent?: any;
anchor?: any;
_vividAriaBehaviour?: any;
VIVID_VERSION?: string | undefined;
componentName?: string | undefined;
}): JSX.Element;
displayName: string;
};
export default VwcMenu;