UNPKG

@vtex/styleguide

Version:

> VTEX Styleguide React components ([Docs](https://vtex.github.io/styleguide))

37 lines (36 loc) 983 B
import React, { FC } from 'react'; import { E2ETestable } from '../types'; export default function usePopoverMenu(): { boxVisible: boolean; setBoxVisible: React.Dispatch<React.SetStateAction<boolean>>; buttonRef: React.MutableRefObject<any>; toggleBox: () => void; }; export declare const Box: FC<BoxProps>; export declare const Item: FC<ItemProps>; declare type BoxProps = E2ETestable & { height?: string | number; width?: string | number; alignMenu?: Alignment; noMargin?: boolean; borderClasses?: string; groupActions?: Array<MenuAction>; }; declare type ItemProps = { onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void; isSelected?: boolean; }; export declare type MenuAction = { label: string; onClick: Function; toggle?: { checked: boolean; semantic: boolean; }; id?: number | string; }; export declare enum Alignment { Left = "left", Right = "right" } export {};