UNPKG

746 BTypeScriptView Raw
1import React from 'react';
2import NavItem from './NavItem';
3import NavLink from './NavLink';
4import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent, SelectCallback } from './helpers';
5export interface NavProps extends BsPrefixPropsWithChildren {
6 navbarBsPrefix?: string;
7 cardHeaderBsPrefix?: string;
8 variant?: 'tabs' | 'pills';
9 activeKey?: unknown;
10 defaultActiveKey?: unknown;
11 fill?: boolean;
12 justify?: boolean;
13 onSelect?: SelectCallback;
14 role?: string;
15 navbar?: boolean;
16 onKeyDown?: React.KeyboardEventHandler<this>;
17}
18declare type Nav = BsPrefixRefForwardingComponent<'div', NavProps> & {
19 Item: typeof NavItem;
20 Link: typeof NavLink;
21};
22declare const Nav: Nav;
23export default Nav;