UNPKG

@mui/base

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

13 lines (12 loc) 485 B
import * as React from 'react'; import { DropdownAction, DropdownState } from './useDropdown.types'; export interface DropdownContextValue { dispatch: React.Dispatch<DropdownAction>; popupId: string; registerPopup: (popupId: string) => void; registerTrigger: (element: HTMLElement | null) => void; state: DropdownState; triggerElement: HTMLElement | null; } declare const DropdownContext: React.Context<DropdownContextValue | null>; export { DropdownContext };