GoScrobble/web/node_modules/react-bootstrap/cjs/Nav.d.ts

26 lines
812 B
TypeScript

import React from 'react';
import NavItem from './NavItem';
import NavLink from './NavLink';
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent, SelectCallback } from './helpers';
import { EventKey } from './types';
export interface NavProps extends BsPrefixPropsWithChildren {
navbarBsPrefix?: string;
cardHeaderBsPrefix?: string;
variant?: 'tabs' | 'pills';
activeKey?: EventKey;
defaultActiveKey?: EventKey;
fill?: boolean;
justify?: boolean;
onSelect?: SelectCallback;
role?: string;
navbar?: boolean;
navbarScroll?: boolean;
onKeyDown?: React.KeyboardEventHandler<this>;
}
declare type Nav = BsPrefixRefForwardingComponent<'div', NavProps> & {
Item: typeof NavItem;
Link: typeof NavLink;
};
declare const Nav: Nav;
export default Nav;