UNPKG

rsuite

Version:

A suite of react components

11 lines (10 loc) 420 B
import React, { Dispatch } from 'react'; import { DropdownAction } from './DropdownState'; export interface DropdownContextProps { activeKey?: string; onSelect?: (eventKey: string | undefined, event: React.SyntheticEvent) => void; hasSelectedItem?: boolean; dispatch?: Dispatch<DropdownAction>; } declare const DropdownContext: React.Context<DropdownContextProps | null>; export default DropdownContext;