UNPKG

1.25 kBTypeScriptView Raw
1import * as React from 'react';
2import { SelectCallback } from '@restart/ui/types';
3import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
4export interface NavbarProps extends BsPrefixProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect'> {
5 variant?: 'light' | 'dark' | string;
6 expand?: boolean | string | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
7 bg?: string;
8 fixed?: 'top' | 'bottom';
9 sticky?: 'top' | 'bottom';
10 onToggle?: (expanded: boolean) => void;
11 onSelect?: SelectCallback;
12 collapseOnSelect?: boolean;
13 expanded?: boolean;
14}
15declare const _default: BsPrefixRefForwardingComponent<"nav", NavbarProps> & {
16 Brand: BsPrefixRefForwardingComponent<"a", import("./NavbarBrand").NavbarBrandProps>;
17 Collapse: React.ForwardRefExoticComponent<import("./NavbarCollapse").NavbarCollapseProps & React.RefAttributes<HTMLDivElement>>;
18 Offcanvas: React.ForwardRefExoticComponent<Omit<import("./NavbarOffcanvas").NavbarOffcanvasProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
19 Text: BsPrefixRefForwardingComponent<"span", import("./NavbarText").NavbarTextProps>;
20 Toggle: BsPrefixRefForwardingComponent<"button", import("./NavbarToggle").NavbarToggleProps>;
21};
22export default _default;