UNPKG

937 BTypeScriptView Raw
1import * as React from 'react';
2
3import NavbarBrand from './NavbarBrand';
4import NavbarCollapse from './NavbarCollapse';
5import NavbarToggle from './NavbarToggle';
6
7import { BsPrefixComponent, SelectCallback } from './helpers';
8
9export class NavbarText<
10 As extends React.ElementType = 'div'
11> extends BsPrefixComponent<As> {}
12
13export interface NavbarProps {
14 variant?: 'light' | 'dark';
15 expand?: boolean | 'sm' | 'md' | 'lg' | 'xl';
16 bg?: string;
17 fixed?: 'top' | 'bottom';
18 sticky?: 'top' | 'bottom';
19 onToggle?: (expanded: boolean) => void;
20 onSelect?: SelectCallback;
21 collapseOnSelect?: boolean;
22 expanded?: boolean;
23 role?: string;
24}
25
26declare class Navbar<
27 As extends React.ElementType = 'nav'
28> extends BsPrefixComponent<As, NavbarProps> {
29 static Brand: typeof NavbarBrand;
30 static Toggle: typeof NavbarToggle;
31 static Collapse: typeof NavbarCollapse;
32 static Text: typeof NavbarText;
33}
34
35export default Navbar;