File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
22+ < Label color = "primary" > primary</ Label >
23+ < Label color = "success" > success</ Label >
24+ < Label color = "info" > info</ Label >
25+ < Label color = "warning" > warning</ Label >
26+ < Label color = "danger" > danger</ Label >
27+ </ p >
28+ < p > Pills</ p >
29+ < p >
30+ < Label color = "default" pill > default</ Label >
31+ < Label color = "primary" pill > primary</ Label >
32+ < Label color = "success" pill > success</ Label >
33+ < Label color = "info" pill > info</ Label >
34+ < Label color = "warning" pill > warning</ Label >
35+ < Label color = "danger" pill > danger</ Label >
36+ </ p >
37+ </ div >
38+ ) ;
39+ }
40+ }
41+
42+ export default LabelsExample ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import ButtonsExample from './ButtonsExample';
33import DropdownsExample from './DropdownsExample' ;
44import TetherExample from './TetherExample' ;
55import TooltipExample from './TooltipExample' ;
6+ import LabelsExample from './LabelsExample' ;
67
78class 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 >
You can’t perform that action at this time.
0 commit comments