Files
TestMesa/backend/frontend/node_modules/@restart/ui/cjs/DropdownContext.d.ts
2024-12-17 13:23:11 -08:00

14 lines
524 B
TypeScript

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;