UNPKG

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