Files
est-frame/node_modules/@restart/ui/cjs/DropdownContext.d.ts
2025-10-22 05:38:27 +00:00

14 lines
524 B
TypeScript
Executable File

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;