UNPKG

@spaced-out/ui-design-system

Version:
25 lines 1.05 kB
import * as React from 'react'; import type { Flow } from 'flow-to-typescript-codemod'; import type { ClickAwayRefType } from '../../utils/click-away'; import type { UnstyledButtonProps } from '../Button'; import type { AnchorType } from '../ButtonDropdown'; import type { MenuOption, MenuProps } from '../Menu'; import type { ElevationType } from '../Tooltip'; type ClassNames = Readonly<{ buttonWrapper?: string; dropdownContainer?: string; }>; export type InlineDropdownProps = UnstyledButtonProps & { classNames?: ClassNames; menu?: MenuProps; anchorPosition?: AnchorType; onOptionSelect?: (option: MenuOption, arg2?: React.SyntheticEvent<HTMLElement> | null | undefined) => unknown; onMenuOpen?: () => unknown; onMenuClose?: () => unknown; size?: 'medium' | 'small' | 'extraSmall'; elevation?: ElevationType; clickAwayRef?: ClickAwayRefType; }; export declare const InlineDropdown: Flow.AbstractComponent<InlineDropdownProps, HTMLDivElement>; export {}; //# sourceMappingURL=InlineDropdown.d.ts.map