/* eslint react/no-multi-comp: 0, react/prop-types: 0 */ import React from 'react'; import { PrismCode } from 'react-prism'; import Helmet from 'react-helmet'; import NavsExample from '../examples/Navs'; const NavsExampleSource = require('!!raw!../examples/Navs'); import NavVerticalExample from '../examples/NavVertical'; const NavVerticalExampleSource = require('!!raw!../examples/NavVertical'); import NavTabsExample from '../examples/NavTabs'; const NavTabsExampleSource = require('!!raw!../examples/NavTabs'); import NavPillsExample from '../examples/NavPills'; const NavPillsExampleSource = require('!!raw!../examples/NavPills'); export default class NavssPage extends React.Component { render() { return (
{NavsExampleSource}
{`Nav.propTypes = {
tabs: PropTypes.bool,
pills: PropTypes.bool,
card: PropTypes.bool,
justified: PropTypes.bool,
fill: PropTypes.bool,
vertical: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
horizontal: PropTypes.string,
navbar: PropTypes.bool,
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
// pass in custom element to use
}`}
{`NavItem.propTypes = {
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
// pass in custom element to use
}`}
{`NavLink.propTypes = {
disabled: PropTypes.bool,
active: PropTypes.bool,
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
// pass in custom element to use
}`}
{`NavDropdown.propTypes = {
disabled: PropTypes.bool,
dropup: PropTypes.bool,
group: PropTypes.bool,
isOpen: PropTypes.bool,
tag: PropTypes.string,
toggle: PropTypes.func
};`}
{NavVerticalExampleSource}
{NavTabsExampleSource}
{NavPillsExampleSource}