forked from reactstrap/reactstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNavbarPage.js
More file actions
73 lines (72 loc) · 2.29 KB
/
Copy pathNavbarPage.js
File metadata and controls
73 lines (72 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* eslint react/no-multi-comp: 0, react/prop-types: 0 */
import React from 'react';
import { Link } from 'react-router';
import { PrismCode } from 'react-prism';
import Helmet from 'react-helmet';
import NavbarExample from '../examples/Navbar';
const NavbarExampleSource = require('!!raw!../examples/Navbar');
import NavbarTogglerExample from '../examples/NavbarToggler';
const NavbarTogglerExampleSource = require('!!raw!../examples/NavbarToggler');
export default class NavsPage extends React.Component {
render() {
return (
<div>
<Helmet title="Navbar Components" />
<h3>Navbar</h3>
<div className="docs-example">
<NavbarExample />
</div>
<pre>
<PrismCode className="language-jsx">
{NavbarExampleSource}
</PrismCode>
</pre>
<h4>Navbar Properties</h4>
<p>See also <Link to="/components/navs/">Navs</Link> for additional components and PropTypes.</p>
<pre>
<PrismCode className="language-jsx">
{`Navbar.propTypes = {
light: PropTypes.bool,
dark: PropTypes.bool,
fixed: PropTypes.string,
color: PropTypes.string,
role: PropTypes.string,
toggleable: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
expandable: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]), // alias for toggleable
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
// pass in custom element to use
}`}
</PrismCode>
</pre>
<h4>NavbarBrand Properties</h4>
<pre>
<PrismCode className="language-jsx">
{`NavbarBrand.propTypes = {
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
// pass in custom element to use
}`}
</PrismCode>
</pre>
<h3>NavbarToggler</h3>
<div className="docs-example">
<NavbarTogglerExample />
</div>
<pre>
<PrismCode className="language-jsx">
{NavbarTogglerExampleSource}
</PrismCode>
</pre>
<h4>NavbarToggler Properties</h4>
<pre>
<PrismCode className="language-jsx">
{`NavbarToggler.propTypes = {
type: PropTypes.string,
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
// pass in custom element to use
}`}
</PrismCode>
</pre>
</div>
);
}
}