GoScrobble/web/node_modules/react-bootstrap/esm/NavDropdown.d.ts

21 lines
758 B
TypeScript

import React from 'react';
import Dropdown, { DropdownProps } from './Dropdown';
import { BsPrefixRefForwardingComponent } from './helpers';
export interface NavDropdownProps extends DropdownProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect' | 'title'> {
id: string;
title: React.ReactNode;
disabled?: boolean;
active?: boolean;
menuRole?: string;
renderMenuOnMount?: boolean;
rootCloseEvent?: 'click' | 'mousedown';
}
declare type NavDropdown = BsPrefixRefForwardingComponent<'div', NavDropdownProps> & {
Item: typeof Dropdown.Item;
ItemText: typeof Dropdown.ItemText;
Divider: typeof Dropdown.Divider;
Header: typeof Dropdown.Header;
};
declare const NavDropdown: NavDropdown;
export default NavDropdown;