forked from reactstrap/reactstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTablesPage.js
More file actions
121 lines (118 loc) · 3.79 KB
/
Copy pathTablesPage.js
File metadata and controls
121 lines (118 loc) · 3.79 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
109
110
111
112
113
114
115
116
117
118
119
120
121
/* 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 TableExample from '../examples/Table';
import TableBorderedExample from '../examples/TableBordered';
import TableHoverExample from '../examples/TableHover';
import TableInverseExample from '../examples/TableInverse';
import TableReflowExample from '../examples/TableReflow';
import TableResponsiveExample from '../examples/TableResponsive';
import TableSizingExample from '../examples/TableSizing';
import TableStripedExample from '../examples/TableStriped';
const TableExampleSource = require('!!raw!../examples/Table');
const TableBorderedExampleSource = require('!!raw!../examples/TableBordered');
const TableHoverExampleSource = require('!!raw!../examples/TableHover');
const TableInverseExampleSource = require('!!raw!../examples/TableInverse');
const TableReflowExampleSource = require('!!raw!../examples/TableReflow');
const TableResponsiveExampleSource = require('!!raw!../examples/TableResponsive');
const TableSizingExampleSource = require('!!raw!../examples/TableSizing');
const TableStripedExampleSource = require('!!raw!../examples/TableStriped');
export default class TablesPage extends React.Component {
render() {
return (
<div>
<Helmet title="Tables" />
<h3>Tables</h3>
<hr />
<div className="docs-example">
<TableExample />
</div>
<pre>
<PrismCode className="language-jsx">
{TableExampleSource}
</PrismCode>
</pre>
<h4>Properties</h4>
<pre>
<PrismCode className="language-jsx">
{`Table.propTypes = {
// Pass in a Component to override default element
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
size: PropTypes.string,
bordered: PropTypes.bool,
striped: PropTypes.bool,
inverse: PropTypes.bool,
hover: PropTypes.bool,
reflow: PropTypes.bool,
responsive: PropTypes.bool
};`}
</PrismCode>
</pre>
<h3>Inverse table</h3>
<div className="docs-example">
<TableInverseExample />
</div>
<pre>
<PrismCode className="language-jsx">
{TableInverseExampleSource}
</PrismCode>
</pre>
<h3>Striped rows</h3>
<div className="docs-example">
<TableStripedExample />
</div>
<pre>
<PrismCode className="language-jsx">
{TableStripedExampleSource}
</PrismCode>
</pre>
<h3>Bordered table</h3>
<div className="docs-example">
<TableBorderedExample />
</div>
<pre>
<PrismCode className="language-jsx">
{TableBorderedExampleSource}
</PrismCode>
</pre>
<h3>Hoverable rows</h3>
<div className="docs-example">
<TableHoverExample />
</div>
<pre>
<PrismCode className="language-jsx">
{TableHoverExampleSource}
</PrismCode>
</pre>
<h3>Small table</h3>
<div className="docs-example">
<TableSizingExample />
</div>
<pre>
<PrismCode className="language-jsx">
{TableSizingExampleSource}
</PrismCode>
</pre>
<h3>Responsive table</h3>
<div className="docs-example">
<TableResponsiveExample />
</div>
<pre>
<PrismCode className="language-jsx">
{TableResponsiveExampleSource}
</PrismCode>
</pre>
<h3>Reflow</h3>
<div className="docs-example">
<TableReflowExample />
</div>
<pre>
<PrismCode className="language-jsx">
{TableReflowExampleSource}
</PrismCode>
</pre>
</div>
);
}
}