forked from reactstrap/reactstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListGroupPage.js
More file actions
87 lines (80 loc) · 3.04 KB
/
Copy pathListGroupPage.js
File metadata and controls
87 lines (80 loc) · 3.04 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
/* 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 ListGroupExample from '../examples/ListGroup';
import ListGroupBadgeExample from '../examples/ListGroupBadge';
import ListGroupDisabledItemsExample from '../examples/ListGroupDisabledItems';
import ListGroupAnchorsAndButtonsExample from '../examples/ListGroupAnchorsAndButtons';
import ListGroupContextualClassesExample from '../examples/ListGroupContextualClasses';
import ListGroupCustomContentExample from '../examples/ListGroupCustomContent';
const ListGroupBadgeExampleSource = require('!!raw!../examples/ListGroupBadge');
const ListGroupExampleSource = require('!!raw!../examples/ListGroup');
const ListGroupDisabledItemsExampleSource = require('!!raw!../examples/ListGroupDisabledItems');
const ListGroupAnchorsAndButtonsExampleSource = require('!!raw!../examples/ListGroupAnchorsAndButtons');
const ListGroupContextualClassesExampleSource = require('!!raw!../examples/ListGroupContextualClasses');
const ListGroupCustomContentExampleSource = require('!!raw!../examples/ListGroupCustomContent');
export default class ListGroupPage extends React.Component {
render() {
return (
<div>
<Helmet title="ListGroup Components" />
<h3>ListGroup</h3>
<div className="docs-example">
<ListGroupExample />
</div>
<pre>
<PrismCode className="language-jsx">
{ListGroupExampleSource}
</PrismCode>
</pre>
<legend>Tags</legend>
<div className="docs-example">
<ListGroupBadgeExample />
</div>
<pre>
<PrismCode className="language-jsx">
{ListGroupBadgeExampleSource}
</PrismCode>
</pre>
<legend>Disabled items</legend>
<div className="docs-example">
<ListGroupDisabledItemsExample />
</div>
<pre>
<PrismCode className="language-jsx">
{ListGroupDisabledItemsExampleSource}
</PrismCode>
</pre>
<legend>Anchors and buttons</legend>
<div className="docs-example">
<p>Note: you need add action props to make these buttons fit the list.</p>
<ListGroupAnchorsAndButtonsExample />
</div>
<pre>
<PrismCode className="language-jsx">
{ListGroupAnchorsAndButtonsExampleSource}
</PrismCode>
</pre>
<legend>Contextual classes</legend>
<div className="docs-example">
<ListGroupContextualClassesExample />
</div>
<pre>
<PrismCode className="language-jsx">
{ListGroupContextualClassesExampleSource}
</PrismCode>
</pre>
<legend>Custom content</legend>
<div className="docs-example">
<ListGroupCustomContentExample />
</div>
<pre>
<PrismCode className="language-jsx">
{ListGroupCustomContentExampleSource}
</PrismCode>
</pre>
</div>
);
}
}