You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
532 B
14 lines
532 B
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;
|