📄 DropdownContext.d.ts
/home/palash/git/site/node_modules/@restart/ui/esm/DropdownContext.d.ts
Language: ts • Lines: 13
import * as React from 'react';
import type { Placement } from './usePopper';
export type DropdownContextValue = {
    toggle: (nextShow: boolean, event?: React.SyntheticEvent | Event) => void;
    menuElement: HTMLElement | null;
    toggleElement: HTMLElement | null;
    setMenu: (ref: HTMLElement | null) => void;
    setToggle: (ref: HTMLElement | null) => void;
    show: boolean;
    placement?: Placement;
};
declare const DropdownContext: React.Context<DropdownContextValue | null>;
export default DropdownContext;