GoScrobble/web/node_modules/react-bootstrap/cjs/Dropdown.d.ts

31 lines
1.3 KiB
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
import React from 'react';
import DropdownItem from './DropdownItem';
import DropdownMenu from './DropdownMenu';
import DropdownToggle from './DropdownToggle';
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent, SelectCallback } from './helpers';
declare const DropdownHeader: BsPrefixRefForwardingComponent<"div", unknown>;
declare const DropdownDivider: BsPrefixRefForwardingComponent<"div", unknown>;
declare const DropdownItemText: BsPrefixRefForwardingComponent<"span", unknown>;
export interface DropdownProps extends BsPrefixPropsWithChildren {
drop?: 'up' | 'left' | 'right' | 'down';
alignRight?: boolean;
show?: boolean;
flip?: boolean;
onToggle?: (isOpen: boolean, event: React.SyntheticEvent<Dropdown>, metadata: {
source: 'select' | 'click' | 'rootClose' | 'keydown';
}) => void;
focusFirstItemOnShow?: boolean | 'keyboard';
onSelect?: SelectCallback;
navbar?: boolean;
}
declare type Dropdown = BsPrefixRefForwardingComponent<'div', DropdownProps> & {
Toggle: typeof DropdownToggle;
Menu: typeof DropdownMenu;
Item: typeof DropdownItem;
ItemText: typeof DropdownItemText;
Divider: typeof DropdownDivider;
Header: typeof DropdownHeader;
};
declare const Dropdown: Dropdown;
export default Dropdown;