|
@@ -122,10 +122,13 @@ on-value | switch value when in `on` state | boolean / string / number | — |
|
|
|
off-value | switch value when in `off` state | boolean / string / number | — | false
|
|
|
on-color | background color when in `on` state | string | — | #20A0FF
|
|
|
off-color | background color when in `off` state | string | — | #C0CCDA
|
|
|
-name| input name of Switch | string | — | —
|
|
|
+name | input name of Switch | string | — | —
|
|
|
+allow-focus | allow `.focus()` & `.blur()` methods on the `input` $ref | boolean | — | false
|
|
|
|
|
|
### Events
|
|
|
|
|
|
Event Name | Description | Parameters
|
|
|
---- | ----| ----
|
|
|
-change | triggers when value changes | value after changing
|
|
|
+change | triggers when value changes | (value: Boolean)
|
|
|
+blur | triggers on blur (if `allowFocus` is `true`) | (event: Event)
|
|
|
+focus | triggers on focus (if `allowFocus` is `true`) | (event: Event)
|