mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
15 lines
574 B
TypeScript
15 lines
574 B
TypeScript
|
import React from 'react';
|
||
|
export declare type DropDirection = 'up' | 'down' | 'left' | 'right';
|
||
|
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;
|
||
|
alignEnd?: boolean;
|
||
|
drop?: DropDirection;
|
||
|
};
|
||
|
declare const DropdownContext: React.Context<DropdownContextValue | null>;
|
||
|
export default DropdownContext;
|