1 | import * as React from 'react';
|
2 | import { UseDropdownMenuOptions } from '@restart/ui/DropdownMenu';
|
3 | import { DropDirection } from './DropdownContext';
|
4 | import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
5 | import { AlignType } from './types';
|
6 | export type DropdownMenuVariant = 'dark' | string;
|
7 | export interface DropdownMenuProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
8 | show?: boolean;
|
9 | renderOnMount?: boolean;
|
10 | flip?: boolean;
|
11 | align?: AlignType;
|
12 | rootCloseEvent?: 'click' | 'mousedown';
|
13 | popperConfig?: UseDropdownMenuOptions['popperConfig'];
|
14 | variant?: DropdownMenuVariant;
|
15 | }
|
16 | export declare function getDropdownMenuPlacement(alignEnd: boolean, dropDirection?: DropDirection, isRTL?: boolean): "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
17 | declare const DropdownMenu: BsPrefixRefForwardingComponent<'div', DropdownMenuProps>;
|
18 | export default DropdownMenu;
|