@spaced-out/ui-design-system
Version:
Sense UI components library
25 lines • 938 B
TypeScript
import * as React from 'react';
import type { Flow } from 'flow-to-typescript-codemod';
import type { ClickAwayRefType } from '../../utils/click-away';
import type { InputProps } from '../Input';
import type { MenuOption, MenuProps } from '../Menu';
import type { ElevationType } from '../Tooltip';
type ClassNames = Readonly<{
wrapper?: string;
box?: string;
iconRight?: string;
}>;
export type DropdownProps = InputProps & {
classNames?: ClassNames;
onChange?: (option: MenuOption, arg2?: React.SyntheticEvent<HTMLElement> | null | undefined) => unknown;
onMenuOpen?: () => unknown;
onMenuClose?: () => unknown;
scrollMenuToBottom?: boolean;
dropdownInputText?: string;
menu?: MenuProps;
elevation?: ElevationType;
clickAwayRef?: ClickAwayRefType;
};
export declare const Dropdown: Flow.AbstractComponent<DropdownProps, HTMLInputElement>;
export {};
//# sourceMappingURL=Dropdown.d.ts.map