mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-25 14:59:16 +01:00
23 lines
1.0 KiB
TypeScript
23 lines
1.0 KiB
TypeScript
import React from 'react';
|
|
import { DropdownProps } from './Dropdown';
|
|
import { PropsFromToggle } from './DropdownToggle';
|
|
import { AlignType } from './DropdownMenu';
|
|
export interface DropdownButtonProps extends DropdownProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect' | 'title'>, React.PropsWithChildren<PropsFromToggle> {
|
|
title: React.ReactNode;
|
|
menuAlign?: AlignType;
|
|
menuRole?: string;
|
|
renderMenuOnMount?: boolean;
|
|
rootCloseEvent?: 'click' | 'mousedown';
|
|
bsPrefix?: string;
|
|
}
|
|
/**
|
|
* A convenience component for simple or general use dropdowns. Renders a `Button` toggle and all `children`
|
|
* are passed directly to the default `Dropdown.Menu`.
|
|
*
|
|
* _All unknown props are passed through to the `Dropdown` component._ Only
|
|
* the Button `variant`, `size` and `bsPrefix` props are passed to the toggle,
|
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
*/
|
|
declare const DropdownButton: React.ForwardRefExoticComponent<DropdownButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
export default DropdownButton;
|