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

21 lines
758 B
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
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;