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.

18 lines (17 loc) 547 B
/// <reference types="react" /> export interface DropdownProps { children: React.ReactNode; /** * If `true`, the dropdown is initially open. */ defaultOpen?: boolean; /** * Callback fired when the component requests to be opened or closed. */ onOpenChange?: (event: React.MouseEvent | React.KeyboardEvent | React.FocusEvent | null, open: boolean) => void; /** * Allows to control whether the dropdown is open. * This is a controlled counterpart of `defaultOpen`. */ open?: boolean; }