@@ -12,9 +12,7 @@ import { getSections } from '@helpers'
12
12
const sections = getSections ({
13
13
title: ' badges' ,
14
14
components: [AstroBadge , SvelteBadge , ReactBadge ],
15
- props: {
16
- onClick : () => {}
17
- }
15
+ showSubTitle: true
18
16
})
19
17
---
20
18
@@ -40,58 +38,79 @@ const sections = getSections({
40
38
41
39
{ sections .map ((section : any ) => (
42
40
<h1 >{ section .title } </h1 >
41
+ <Fragment >
42
+ { section .subTitle && <h2 set :html = { section .subTitle } />}
43
+ </Fragment >
43
44
<div class = " grid md-2 lg-3" >
44
45
<ComponentWrapper title = " Primary" >
45
- <section.component onClick = { section . onClick } >
46
+ <section.component hover = { true } >
46
47
Primary
47
48
</section.component >
48
49
</ComponentWrapper >
49
50
50
51
<ComponentWrapper title = " Secondary" >
51
- <section.component theme = " secondary" onClick = { section . onClick } >
52
+ <section.component theme = " secondary" hover = { true } >
52
53
Secondary
53
54
</section.component >
54
55
</ComponentWrapper >
55
56
56
57
<ComponentWrapper title = " Outline" >
57
- <section.component theme = " outline" onClick = { section . onClick } >
58
+ <section.component theme = " outline" hover = { true } >
58
59
Outline
59
60
</section.component >
60
61
</ComponentWrapper >
61
62
62
63
<ComponentWrapper title = " Flat" >
63
- <section.component theme = " flat" onClick = { section . onClick } >
64
+ <section.component theme = " flat" hover = { true } >
64
65
Flat
65
66
</section.component >
66
67
</ComponentWrapper >
67
68
68
69
<ComponentWrapper title = " With Icon" >
69
- <section.component theme = " secondary" onClick = { section . onClick } >
70
+ <section.component theme = " secondary" hover = { true } >
70
71
<Icon type = " github" size = { 14 } />
71
72
With Icon
72
73
</section.component >
73
74
</ComponentWrapper >
74
75
75
76
<ComponentWrapper title = " Info" >
76
- <section.component theme = " info" onClick = { section . onClick } >
77
+ <section.component theme = " info" hover = { true } >
77
78
Info
78
79
</section.component >
79
80
</ComponentWrapper >
80
81
81
82
<ComponentWrapper title = " Success" >
82
- <section.component theme = " success" onClick = { section . onClick } >
83
+ <section.component theme = " success" hover = { true } >
83
84
Success
84
85
</section.component >
85
86
</ComponentWrapper >
86
87
87
88
<ComponentWrapper title = " Warning" >
88
- <section.component theme = " warning" onClick = { section . onClick } >
89
+ <section.component theme = " warning" hover = { true } >
89
90
Warning
90
91
</section.component >
91
92
</ComponentWrapper >
92
93
93
94
<ComponentWrapper title = " Alert" >
94
- <section.component theme = " alert" onClick = { section .onClick } >
95
+ <section.component theme = " alert" hover = { true } >
96
+ Alert
97
+ </section.component >
98
+ </ComponentWrapper >
99
+
100
+ <ComponentWrapper title = " Small success" >
101
+ <section.component theme = " success" small = { true } >
102
+ Success
103
+ </section.component >
104
+ </ComponentWrapper >
105
+
106
+ <ComponentWrapper title = " Small warning" >
107
+ <section.component theme = " warning" small = { true } >
108
+ Warning
109
+ </section.component >
110
+ </ComponentWrapper >
111
+
112
+ <ComponentWrapper title = " Small alert" >
113
+ <section.component theme = " alert" small = { true } >
95
114
Alert
96
115
</section.component >
97
116
</ComponentWrapper >
0 commit comments