UNPKG

938 BTypeScriptView Raw
1import NavbarBrand from './NavbarBrand';
2import NavbarCollapse from './NavbarCollapse';
3import NavbarToggle from './NavbarToggle';
4import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent, SelectCallback } from './helpers';
5declare const NavbarText: BsPrefixRefForwardingComponent<"span", unknown>;
6export interface NavbarProps extends BsPrefixPropsWithChildren {
7 variant?: 'light' | 'dark';
8 expand?: boolean | 'sm' | 'md' | 'lg' | 'xl';
9 bg?: string;
10 fixed?: 'top' | 'bottom';
11 sticky?: 'top';
12 onToggle?: (expanded: boolean) => void;
13 onSelect?: SelectCallback;
14 collapseOnSelect?: boolean;
15 expanded?: boolean;
16 role?: string;
17}
18declare type Navbar = BsPrefixRefForwardingComponent<'nav', NavbarProps> & {
19 Brand: typeof NavbarBrand;
20 Collapse: typeof NavbarCollapse;
21 Text: typeof NavbarText;
22 Toggle: typeof NavbarToggle;
23};
24declare const Navbar: Navbar;
25export default Navbar;