forked from reactstrap/reactstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPaginationPage.js
More file actions
72 lines (67 loc) · 2.25 KB
/
Copy pathPaginationPage.js
File metadata and controls
72 lines (67 loc) · 2.25 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
/* 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 PaginationExample from '../examples/Pagination';
const PaginationExampleSource = require('!!raw!../examples/Pagination');
import PaginationStateExample from '../examples/PaginationState';
const PaginationStateExampleSource = require('!!raw!../examples/PaginationState');
import PaginationSizingLargeExample from '../examples/PaginationSizingLarge';
const PaginationSizingLargeExampleSource = require('!!raw!../examples/PaginationSizingLarge');
import PaginationSizingSmallExample from '../examples/PaginationSizingSmall';
const PaginationSizingSmallExampleSource = require('!!raw!../examples/PaginationSizingSmall');
export default class PaginationPage extends React.Component {
render() {
return (
<div>
<Helmet title="Pagination" />
<h3>Pagination</h3>
<div className="docs-example">
<PaginationExample />
</div>
<pre>
<PrismCode className="language-jsx">
{PaginationExampleSource}
</PrismCode>
</pre>
<h4>Properties</h4>
<pre>
<PrismCode className="language-jsx">
{`Pagination.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
size: PropTypes.string,
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
}`}
</PrismCode>
</pre>
<h3>Disabled and active states</h3>
<div className="docs-example">
<PaginationStateExample />
</div>
<pre>
<PrismCode className="language-jsx">
{PaginationStateExampleSource}
</PrismCode>
</pre>
<h3>Sizing</h3>
<div className="docs-example">
<PaginationSizingLargeExample />
</div>
<pre>
<PrismCode className="language-jsx">
{PaginationSizingLargeExampleSource}
</PrismCode>
</pre>
<div className="docs-example">
<PaginationSizingSmallExample />
</div>
<pre>
<PrismCode className="language-jsx">
{PaginationSizingSmallExampleSource}
</PrismCode>
</pre>
</div>
);
}
}