|
@@ -123,12 +123,12 @@ off-value | switch value when in `off` state | boolean / string / number | —
|
|
on-color | background color when in `on` state | string | — | #20A0FF
|
|
on-color | background color when in `on` state | string | — | #20A0FF
|
|
off-color | background color when in `off` state | string | — | #C0CCDA
|
|
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
|
|
|
|
|
|
+allow-focus | allow `focus` and `blur` events on the input | boolean | — | false
|
|
|
|
|
|
### Events
|
|
### Events
|
|
|
|
|
|
Event Name | Description | Parameters
|
|
Event Name | Description | Parameters
|
|
---- | ----| ----
|
|
---- | ----| ----
|
|
-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)
|
|
|
|
|
|
+change | triggers when value changes | value after changing
|
|
|
|
+blur | triggers on blur (if `allow-focus` is true) | event: Event
|
|
|
|
+focus | triggers on focus (if `allow-focus` is true) | event: Event
|