UNPKG

1 kBTypeScriptView Raw
1import * as React from 'react';
2import { UseDropdownMenuOptions } from '@restart/ui/DropdownMenu';
3import { DropDirection } from './DropdownContext';
4import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
5import { AlignType } from './types';
6export type DropdownMenuVariant = 'dark' | string;
7export 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}
16export 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";
17declare const DropdownMenu: BsPrefixRefForwardingComponent<'div', DropdownMenuProps>;
18export default DropdownMenu;