@@ -106,12 +106,12 @@ And three shapes `p-round` `p-curve` `p-square` (default)
106
106
#### Basic checkbox
107
107
108
108
``` html
109
- <div class =" pretty p-default" >
110
- <input type =" checkbox" >
111
- <div class =" state" >
112
- <label >Check me</label >
113
- </div >
114
- </div >
109
+ <div class =" pretty p-default" >
110
+ <input type =" checkbox" / >
111
+ <div class =" state" >
112
+ <label >Check me</label >
113
+ </div >
114
+ </div >
115
115
```
116
116
117
117
Basic checkbox has three variants ` p-fill ` ` p-thick ` ` p-outline ` (default)
@@ -120,10 +120,10 @@ You can combine them.
120
120
121
121
``` html
122
122
<div class =" pretty p-default p-curve p-fill" >
123
- <input type =" checkbox" />
124
- <div class =" state" >
125
- <label >Fill</label >
126
- </div >
123
+ <input type =" checkbox" />
124
+ <div class =" state" >
125
+ <label >Fill</label >
126
+ </div >
127
127
</div >
128
128
```
129
129
@@ -134,26 +134,26 @@ You can combine them.
134
134
Switch has three variants ` p-outline ` ` p-fill ` ` p-slim `
135
135
136
136
``` html
137
- <div class =" pretty p-switch p-fill" >
137
+ <div class =" pretty p-switch p-fill" >
138
138
<input type =" checkbox" />
139
139
<div class =" state" >
140
- <label >On</label >
140
+ <label >On</label >
141
141
</div >
142
- </div >
142
+ </div >
143
143
```
144
144
145
145
<div align =" center " ><strong >---</strong ></div >
146
146
147
147
#### Custom Font icons
148
148
149
149
``` html
150
- <div class =" pretty p-icon" >
151
- <input type =" checkbox" >
152
- <div class =" state" >
153
- <i class =" icon fa fa-check" ></i >
154
- <label >Check me</label >
155
- </div >
156
- </div >
150
+ <div class =" pretty p-icon" >
151
+ <input type =" checkbox" >
152
+ <div class =" state" >
153
+ <i class =" icon fa fa-check" ></i >
154
+ <label >Check me</label >
155
+ </div >
156
+ </div >
157
157
```
158
158
159
159
<blockquote >
@@ -175,13 +175,13 @@ Switch has three variants `p-outline` `p-fill` `p-slim`
175
175
#### SVG
176
176
177
177
``` html
178
- <div class =" pretty p-svg" >
179
- <input type =" checkbox" >
180
- <div class =" state" >
181
- <img class =" svg" src =" file.svg" >
182
- <label >Check me</label >
183
- </div >
184
- </div >
178
+ <div class =" pretty p-svg" >
179
+ <input type =" checkbox" >
180
+ <div class =" state" >
181
+ <img class =" svg" src =" file.svg" / >
182
+ <label >Check me</label >
183
+ </div >
184
+ </div >
185
185
```
186
186
187
187
Support, SVG file in img tag, svg markup (` <svg> ... </svg> ` )
@@ -200,11 +200,11 @@ Checkout the documentation for different formats and tested svg libraries.
200
200
201
201
``` html
202
202
<div class =" pretty p-image" >
203
- <input type =" checkbox" />
204
- <div class =" state" >
205
- <img class =" image" src =" /check.png" >
206
- <label >Block</label >
207
- </div >
203
+ <input type =" checkbox" />
204
+ <div class =" state" >
205
+ <img class =" image" src =" /check.png" / >
206
+ <label >Block</label >
207
+ </div >
208
208
</div >
209
209
```
210
210
@@ -228,10 +228,10 @@ And five outline colors `p-primary-o` `p-success-o` `p-warning-o` `p-info-o` `p
228
228
229
229
``` html
230
230
<div class =" pretty p-default p-curve p-thick" >
231
- <input type =" checkbox" />
232
- <div class =" state p-warning" >
233
- <label >Warning</label >
234
- </div >
231
+ <input type =" checkbox" />
232
+ <div class =" state p-warning" >
233
+ <label >Warning</label >
234
+ </div >
235
235
</div >
236
236
```
237
237
<blockquote >
0 commit comments