forked from reactstrap/reactstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNavsPage.js
More file actions
108 lines (107 loc) · 3.1 KB
/
Copy pathNavsPage.js
File metadata and controls
108 lines (107 loc) · 3.1 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* 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 (
<div>
<Helmet title="Nav Components" />
<h3>Navs</h3>
<div className="docs-example">
<NavsExample />
</div>
<pre>
<PrismCode className="language-jsx">
{NavsExampleSource}
</PrismCode>
</pre>
<h4>Nav Properties</h4>
<pre>
<PrismCode className="language-jsx">
{`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
}`}
</PrismCode>
</pre>
<h4>NavItem Properties</h4>
<pre>
<PrismCode className="language-jsx">
{`NavItem.propTypes = {
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
// pass in custom element to use
}`}
</PrismCode>
</pre>
<h4>NavLink Properties</h4>
<pre>
<PrismCode className="language-jsx">
{`NavLink.propTypes = {
disabled: PropTypes.bool,
active: PropTypes.bool,
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
// pass in custom element to use
}`}
</PrismCode>
</pre>
<h4>NavDropdown Properties</h4>
<pre>
<PrismCode className="language-jsx">
{`NavDropdown.propTypes = {
disabled: PropTypes.bool,
dropup: PropTypes.bool,
group: PropTypes.bool,
isOpen: PropTypes.bool,
tag: PropTypes.string,
toggle: PropTypes.func
};`}
</PrismCode>
</pre>
<h3>Vertical</h3>
<div className="docs-example">
<NavVerticalExample />
</div>
<pre>
<PrismCode className="language-jsx">
{NavVerticalExampleSource}
</PrismCode>
</pre>
<h3>Tabs</h3>
<div className="docs-example">
<NavTabsExample />
</div>
<pre>
<PrismCode className="language-jsx">
{NavTabsExampleSource}
</PrismCode>
</pre>
<h3>Pills</h3>
<div className="docs-example">
<NavPillsExample />
</div>
<pre>
<PrismCode className="language-jsx">
{NavPillsExampleSource}
</PrismCode>
</pre>
</div>
);
}
}