Page MenuHomec4science

DropdownContext.d.ts
No OneTemporary

File Metadata

Created
Tue, Feb 4, 01:53

DropdownContext.d.ts

import * as React from 'react';
import type { Placement } from './usePopper';
export declare 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;

Event Timeline