1 | import * as React from 'react';
|
2 |
|
3 | import NavbarBrand from './NavbarBrand';
|
4 | import NavbarCollapse from './NavbarCollapse';
|
5 | import NavbarToggle from './NavbarToggle';
|
6 |
|
7 | import { BsPrefixComponent, SelectCallback } from './helpers';
|
8 |
|
9 | export class NavbarText<
|
10 | As extends React.ElementType = 'div'
|
11 | > extends BsPrefixComponent<As> {}
|
12 |
|
13 | export 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 |
|
26 | declare 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 |
|
35 | export default Navbar;
|