UNPKG

1.28 kBTypeScriptView Raw
1import * as React from 'react';
2import { DropdownProps as BaseDropdownProps } from '@restart/ui/Dropdown';
3import { DropDirection } from './DropdownContext';
4import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
5import { AlignType } from './types';
6export interface DropdownProps extends BaseDropdownProps, BsPrefixProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect' | 'children'> {
7 drop?: DropDirection;
8 align?: AlignType;
9 focusFirstItemOnShow?: boolean | 'keyboard';
10 navbar?: boolean;
11 autoClose?: boolean | 'outside' | 'inside';
12}
13declare const _default: BsPrefixRefForwardingComponent<"div", DropdownProps> & {
14 Toggle: BsPrefixRefForwardingComponent<"button", import("./DropdownToggle").DropdownToggleProps>;
15 Menu: BsPrefixRefForwardingComponent<"div", import("./DropdownMenu").DropdownMenuProps>;
16 Item: BsPrefixRefForwardingComponent<"a", import("./DropdownItem").DropdownItemProps>;
17 ItemText: BsPrefixRefForwardingComponent<"span", import("./DropdownItemText").DropdownItemTextProps>;
18 Divider: BsPrefixRefForwardingComponent<"hr", import("./DropdownDivider").DropdownDividerProps>;
19 Header: BsPrefixRefForwardingComponent<"div", import("./DropdownHeader").DropdownHeaderProps>;
20};
21export default _default;