forked from reactstrap/reactstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBadgePage.js
More file actions
77 lines (71 loc) · 2.4 KB
/
Copy pathBadgePage.js
File metadata and controls
77 lines (71 loc) · 2.4 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
/* 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 BadgeExample from '../examples/Badge';
const BadgeExampleSource = require('!!raw!../examples/Badge');
import BadgeButtonExample from '../examples/BadgeButton';
const BadgeButtonExampleSource = require('!!raw!../examples/BadgeButton');
import BadgePillsExample from '../examples/BadgePills';
const BadgePillsExampleSource = require('!!raw!../examples/BadgePills');
import BadgeVariationsExample from '../examples/BadgeVariations';
const BadgeVariationsExampleSource = require('!!raw!../examples/BadgeVariations');
import BadgeLinksExample from '../examples/BadgeLinks';
const BadgeLinksExampleSource = require('!!raw!../examples/BadgeLinks');
export default class BadgesPage extends React.Component {
render() {
return (
<div>
<Helmet title="Badges" />
<h3>Badges</h3>
<hr />
<p>Scale to parent</p>
<div className="docs-example">
<BadgeExample />
</div>
<pre>
<PrismCode className="language-jsx">
{BadgeExampleSource}
</PrismCode>
</pre>
<p>Badges can be used as part of links or buttons to provide a counter.</p>
<div className="docs-example">
<BadgeButtonExample />
</div>
<pre>
<PrismCode className="language-jsx">
{BadgeButtonExampleSource}
</PrismCode>
</pre>
<h3>Contextual variations</h3>
<div className="docs-example">
<BadgeVariationsExample />
</div>
<pre>
<PrismCode className="language-jsx">
{BadgeVariationsExampleSource}
</PrismCode>
</pre>
<h3>Pills</h3>
<div className="docs-example">
<BadgePillsExample />
</div>
<pre>
<PrismCode className="language-jsx">
{BadgePillsExampleSource}
</PrismCode>
</pre>
<h3>Links</h3>
<p>Adding the <code>href</code> prop (without specifying a <code>tag</code> prop) will default the badge to a link.</p>
<div className="docs-example">
<BadgeLinksExample />
</div>
<pre>
<PrismCode className="language-jsx">
{BadgeLinksExampleSource}
</PrismCode>
</pre>
</div>
);
}
}