@@ -52,10 +52,10 @@ Here is a list of the all of the available options, as well as their default val
52
52
boxShadow: defaultTheme.boxShadow.none,
53
53
checkboxSize: '1em',
54
54
radioSize: '1em',
55
- checkboxIcon: \` <svg viewBox="0 0 16 16" fill="#fff" xmlns="http://www.w3.org/2000/svg"><path d="M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z"/ ></svg>\` ,
56
- radioIcon: \` <svg viewBox="0 0 16 16" fill="#fff" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/ ></svg>\` ,
55
+ checkboxIcon: \` <svg viewBox="0 0 16 16" fill="#fff" xmlns="http://www.w3.org/2000/svg"><path d="M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z"></svg>\` ,
56
+ radioIcon: \` <svg viewBox="0 0 16 16" fill="#fff" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"></svg>\` ,
57
57
checkedColor: 'currentColor',
58
- selectIcon: \` <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="${' ${defaultTheme.colors.gray[500]}' }"><path d="M15.3 9.3a1 1 0 0 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 1.4-1.4l3.3 3.29 3.3-3.3z"/ ></svg>\` ,
58
+ selectIcon: \` <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="${' ${defaultTheme.colors.gray[500]}' }"><path d="M15.3 9.3a1 1 0 0 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 1.4-1.4l3.3 3.29 3.3-3.3z"></svg>\` ,
59
59
selectIconOffset: defaultTheme.spacing[2],
60
60
selectIconSize: '1.5em',
61
61
}
@@ -76,7 +76,7 @@ Add basic styles to a normal `input` element using the `form-input` class.
76
76
<CodeSample code = { `
77
77
<label class="block">
78
78
<span class="text-gray-700">Input</span>
79
- <input type="email" class="form-input mt-1 block w-full" placeholder="[email protected] "/ >
79
+ <input type="email" class="form-input mt-1 block w-full" placeholder="[email protected] ">
80
80
</label>
81
81
` } />
82
82
@@ -140,19 +140,19 @@ impose any opinions in that regard. Here we've used flexbox to center the checkb
140
140
<div class="mt-2">
141
141
<div>
142
142
<label class="inline-flex items-center">
143
- <input type="checkbox" class="form-checkbox text-gray-800 " checked/ >
143
+ <input type="checkbox" class="form-checkbox" checked>
144
144
<span class="ml-2">Option 1</span>
145
145
</label>
146
146
</div>
147
147
<div>
148
148
<label class="inline-flex items-center">
149
- <input type="checkbox" class="form-checkbox text-gray-800"/ >
149
+ <input type="checkbox" class="form-checkbox" >
150
150
<span class="ml-2">Option 2</span>
151
151
</label>
152
152
</div>
153
153
<div>
154
154
<label class="inline-flex items-center">
155
- <input type="checkbox" class="form-checkbox text-gray-800"/ >
155
+ <input type="checkbox" class="form-checkbox" >
156
156
<span class="ml-2">Option 3</span>
157
157
</label>
158
158
</div>
@@ -171,19 +171,19 @@ color utilities, like `text-indigo-600`.
171
171
<div class="mt-2">
172
172
<div>
173
173
<label class="inline-flex items-center">
174
- <input type="checkbox" class="form-checkbox text-indigo-600" checked/ >
174
+ <input type="checkbox" class="form-checkbox text-indigo-600" checked>
175
175
<span class="ml-2">Option 1</span>
176
176
</label>
177
177
</div>
178
178
<div>
179
179
<label class="inline-flex items-center">
180
- <input type="checkbox" class="form-checkbox text-blue -500" checked/ >
180
+ <input type="checkbox" class="form-checkbox text-green -500" checked>
181
181
<span class="ml-2">Option 2</span>
182
182
</label>
183
183
</div>
184
184
<div>
185
185
<label class="inline-flex items-center">
186
- <input type="checkbox" class="form-checkbox text-pink-600" checked/ >
186
+ <input type="checkbox" class="form-checkbox text-pink-600" checked>
187
187
<span class="ml-2">Option 3</span>
188
188
</label>
189
189
</div>
@@ -202,19 +202,19 @@ use Tailwind's width and height utilities, like `h-6` and `w-6`.
202
202
<div class="mt-2">
203
203
<div>
204
204
<label class="inline-flex items-center">
205
- <input type="checkbox" class="form-checkbox h-4 w-4 text-gray-800 " checked/ >
205
+ <input type="checkbox" class="form-checkbox h-4 w-4" checked>
206
206
<span class="ml-2">Option 1</span>
207
207
</label>
208
208
</div>
209
209
<div class="mt-1">
210
210
<label class="inline-flex items-center">
211
- <input type="checkbox" class="form-checkbox h-6 w-6 text-gray-800"/ >
211
+ <input type="checkbox" class="form-checkbox h-6 w-6" >
212
212
<span class="ml-3 text-lg">Option 2</span>
213
213
</label>
214
214
</div>
215
215
<div class="mt-1">
216
216
<label class="inline-flex items-center">
217
- <input type="checkbox" class="form-checkbox h-8 w-8 text-gray-800"/ >
217
+ <input type="checkbox" class="form-checkbox h-8 w-8" >
218
218
<span class="ml-4 text-xl">Option 3</span>
219
219
</label>
220
220
</div>
@@ -235,19 +235,19 @@ impose any opinions in that regard. Here we've used flexbox to center the radio
235
235
<div class="mt-2">
236
236
<div>
237
237
<label class="inline-flex items-center">
238
- <input type="radio" class="form-radio text-gray-800 " name="radio" value="1" checked/ >
238
+ <input type="radio" class="form-radio" name="radio" value="1" checked>
239
239
<span class="ml-2">Option 1</span>
240
240
</label>
241
241
</div>
242
242
<div>
243
243
<label class="inline-flex items-center">
244
- <input type="radio" class="form-radio text-gray-800 " name="radio" value="2"/ >
244
+ <input type="radio" class="form-radio" name="radio" value="2">
245
245
<span class="ml-2">Option 2</span>
246
246
</label>
247
247
</div>
248
248
<div>
249
249
<label class="inline-flex items-center">
250
- <input type="radio" class="form-radio text-gray-800 " name="radio" value="3"/ >
250
+ <input type="radio" class="form-radio" name="radio" value="3">
251
251
<span class="ml-2">Option 3</span>
252
252
</label>
253
253
</div>
@@ -267,19 +267,19 @@ color utilities, like `text-indigo-600`.
267
267
<div class="mt-2">
268
268
<div>
269
269
<label class="inline-flex items-center">
270
- <input type="radio" class="form-radio text-indigo-600" name="radio-colors" value="1" checked/ >
270
+ <input type="radio" class="form-radio text-indigo-600" name="radio-colors" value="1" checked>
271
271
<span class="ml-2">Option 1</span>
272
272
</label>
273
273
</div>
274
274
<div>
275
275
<label class="inline-flex items-center">
276
- <input type="radio" class="form-radio text-blue -500" name="radio-colors" value="2"/ >
276
+ <input type="radio" class="form-radio text-green -500" name="radio-colors" value="2">
277
277
<span class="ml-2">Option 2</span>
278
278
</label>
279
279
</div>
280
280
<div>
281
281
<label class="inline-flex items-center">
282
- <input type="radio" class="form-radio text-pink-600" name="radio-colors" value="3"/ >
282
+ <input type="radio" class="form-radio text-pink-600" name="radio-colors" value="3">
283
283
<span class="ml-2">Option 3</span>
284
284
</label>
285
285
</div>
@@ -298,19 +298,19 @@ use Tailwind's width and height utilities, like `h-6` and `w-6`.
298
298
<div class="mt-2">
299
299
<div>
300
300
<label class="inline-flex items-center">
301
- <input type="radio" class="form-radio h-4 w-4 text-gray-800 " name="radio-sizes" value="1" checked/ >
301
+ <input type="radio" class="form-radio h-4 w-4" name="radio-sizes" value="1" checked>
302
302
<span class="ml-2">Option 1</span>
303
303
</label>
304
304
</div>
305
305
<div class="mt-1">
306
306
<label class="inline-flex items-center">
307
- <input type="radio" class="form-radio h-6 w-6 text-gray-800 " name="radio-sizes" value="2"/ >
307
+ <input type="radio" class="form-radio h-6 w-6" name="radio-sizes" value="2">
308
308
<span class="ml-3 text-lg">Option 2</span>
309
309
</label>
310
310
</div>
311
311
<div class="mt-1">
312
312
<label class="inline-flex items-center">
313
- <input type="radio" class="form-radio h-8 w-8 text-gray-800 " name="radio-sizes" value="3"/ >
313
+ <input type="radio" class="form-radio h-8 w-8" name="radio-sizes" value="3">
314
314
<span class="ml-4 text-xl">Option 3</span>
315
315
</label>
316
316
</div>
0 commit comments