UNPKG

547 BTypeScriptView Raw
1/// <reference types="react" />
2export interface DropdownProps {
3 children: React.ReactNode;
4 /**
5 * If `true`, the dropdown is initially open.
6 */
7 defaultOpen?: boolean;
8 /**
9 * Callback fired when the component requests to be opened or closed.
10 */
11 onOpenChange?: (event: React.MouseEvent | React.KeyboardEvent | React.FocusEvent | null, open: boolean) => void;
12 /**
13 * Allows to control whether the dropdown is open.
14 * This is a controlled counterpart of `defaultOpen`.
15 */
16 open?: boolean;
17}