File tree 2 files changed +47
-2
lines changed
2 files changed +47
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ import {
28
28
CInputGroupText ,
29
29
CLabel ,
30
30
CSelect ,
31
- CRow
31
+ CRow ,
32
+ CSwitch
32
33
} from '@coreui/react'
33
34
import CIcon from '@coreui/icons-react'
34
35
import { DocsLink } from 'src/reusable'
@@ -285,6 +286,50 @@ const BasicForms = () => {
285
286
</ CSelect >
286
287
</ CCol >
287
288
</ CFormGroup >
289
+ < CFormGroup row >
290
+ < CCol tag = "label" sm = "3" className = "col-form-label" >
291
+ Switch checkboxes
292
+ </ CCol >
293
+ < CCol sm = "9" >
294
+ < CSwitch
295
+ className = "mr-1"
296
+ color = "primary"
297
+ defaultChecked
298
+ />
299
+ < CSwitch
300
+ className = "mr-1"
301
+ color = "success"
302
+ defaultChecked
303
+ variant = "outline"
304
+ />
305
+ < CSwitch
306
+ className = "mr-1"
307
+ color = "warning"
308
+ defaultChecked
309
+ variant = "opposite"
310
+ />
311
+ < CSwitch
312
+ className = "mr-1"
313
+ color = "danger"
314
+ defaultChecked
315
+ shape = "pill"
316
+ />
317
+ < CSwitch
318
+ className = "mr-1"
319
+ color = "info"
320
+ defaultChecked
321
+ shape = "pill"
322
+ variant = "outline"
323
+ />
324
+ < CSwitch
325
+ className = "mr-1"
326
+ color = "dark"
327
+ defaultChecked
328
+ shape = "pill"
329
+ variant = "opposite"
330
+ />
331
+ </ CCol >
332
+ </ CFormGroup >
288
333
< CFormGroup row >
289
334
< CCol md = "3" >
290
335
< CLabel > Radios</ CLabel >
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ const Alerts = () => {
163
163
/>
164
164
</ CAlert >
165
165
166
- < CButton onClick = { ( ) => setVisible ( 10 ) } >
166
+ < CButton color = "primary" onClick = { ( ) => setVisible ( 10 ) } >
167
167
Reset timer
168
168
</ CButton >
169
169
</ CCardBody >
You can’t perform that action at this time.
0 commit comments