Skip to content

Commit df1baa4

Browse files
committed
feat(Layout): include LabelsExample in Layout
1 parent 2856cd0 commit df1baa4

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

example/js/LabelsExample.jsx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/* eslint react/no-multi-comp: 0, react/prop-types: 0 */
2+
3+
import React from 'react';
4+
import { Label } from 'lib/index';
5+
6+
class LabelsExample extends React.Component {
7+
render() {
8+
return (
9+
<div>
10+
<h3>Labels</h3>
11+
<hr/>
12+
<p>Scale to parent</p>
13+
<h1>Heading <Label>New</Label></h1>
14+
<h2>Heading <Label>New</Label></h2>
15+
<h3>Heading <Label>New</Label></h3>
16+
<h4>Heading <Label>New</Label></h4>
17+
<h5>Heading <Label>New</Label></h5>
18+
<h6>Heading <Label>New</Label></h6>
19+
<p>Variations</p>
20+
<p>
21+
<Label>default</Label>&nbsp;
22+
<Label color="primary">primary</Label>&nbsp;
23+
<Label color="success">success</Label>&nbsp;
24+
<Label color="info">info</Label>&nbsp;
25+
<Label color="warning">warning</Label>&nbsp;
26+
<Label color="danger">danger</Label>
27+
</p>
28+
<p>Pills</p>
29+
<p>
30+
<Label color="default" pill>default</Label>&nbsp;
31+
<Label color="primary" pill>primary</Label>&nbsp;
32+
<Label color="success" pill>success</Label>&nbsp;
33+
<Label color="info" pill>info</Label>&nbsp;
34+
<Label color="warning" pill>warning</Label>&nbsp;
35+
<Label color="danger" pill>danger</Label>
36+
</p>
37+
</div>
38+
);
39+
}
40+
}
41+
42+
export default LabelsExample;

example/js/Layout.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import ButtonsExample from './ButtonsExample';
33
import DropdownsExample from './DropdownsExample';
44
import TetherExample from './TetherExample';
55
import TooltipExample from './TooltipExample';
6+
import LabelsExample from './LabelsExample';
67

78
class Layout extends React.Component {
89
render() {
@@ -17,6 +18,7 @@ class Layout extends React.Component {
1718
<DropdownsExample/>
1819
<TetherExample/>
1920
<TooltipExample/>
21+
<LabelsExample/>
2022
</div>
2123
</div>
2224
</div>

0 commit comments

Comments
 (0)