@spaced-out/ui-design-system
Version:
Sense UI components library
26 lines • 1.18 kB
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 '../../components/Input';
import type { MenuOption, MenuProps } from '../../components/Menu';
import type { ElevationType } from '../../components/Tooltip';
type ClassNames = Readonly<{
wrapper?: string;
box?: string;
iconRight?: string;
}>;
export interface DropdownProps extends Omit<InputProps, 'classNames' | 'onChange' | 'onMenuOpen' | 'onMenuClose' | 'scrollMenuToBottom' | 'dropdownInputText' | 'menu' | 'elevation' | 'clickAwayRef'> {
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?: React.RefObject<ClickAwayRefType | null>;
testId?: string;
}
export declare const Dropdown: Flow.AbstractComponent<DropdownProps, HTMLInputElement>;
export {};
//# sourceMappingURL=Dropdown.d.ts.map