@@ -74,6 +74,7 @@ After installing and registering the plugin, this is all you need to get started
74
74
- [ trigger] ( #trigger )
75
75
- [ disabled] ( #disabled )
76
76
- [ respectDisabledAttribute] ( #respectdisabledattribute )
77
+ - [ respectPrefersReducedMotion] ( #respectprefersreducedmotion )
77
78
- [ stopPropagation] ( #stoppropagation )
78
79
- [ tagName] ( #tagname )
79
80
- [ Using triggers] ( #using-triggers )
@@ -240,20 +241,21 @@ export default {
240
241
241
242
### Summary
242
243
243
- | Name | Default | Type |
244
- | ----------------------------------------------------- | :--------------: | ----------------------------- |
245
- | [ color] ( #color ) | ` "currentColor" ` | ` string ` |
246
- | [ initialOpacity] ( #initialopacity ) | ` 0.2 ` | ` number ` |
247
- | [ finalOpacity] ( #finalopacity ) | ` 0.1 ` | ` number ` |
248
- | [ duration] ( #duration ) | ` 0.4 ` | ` number ` |
249
- | [ dissolveDuration] ( #dissolveduration ) | ` 0.15 ` | ` number ` |
250
- | [ easing] ( #easing ) | ` ease-out ` | ` string ` |
251
- | [ cancellationPeriod] ( #cancellationperiod ) | ` 75 ` | ` number ` |
252
- | [ trigger] ( #trigger ) | ` "auto" ` | ` string \| boolean \| "auto" ` |
253
- | [ disabled] ( #disabled ) | ` false ` | ` boolean ` |
254
- | [ respectDisabledAttribute] ( #respectdisabledattribute ) | ` true ` | ` boolean ` |
255
- | [ stopPropagation] ( #stoppropagation ) | ` false ` | ` boolean ` |
256
- | [ tagName] ( #tagname ) | ` "div" ` | ` string ` |
244
+ | Name | Default | Type |
245
+ | ------------------------------------------------------ | :--------------: | ----------------------------- |
246
+ | [ color] ( #color ) | ` "currentColor" ` | ` string ` |
247
+ | [ initialOpacity] ( #initialopacity ) | ` 0.2 ` | ` number ` |
248
+ | [ finalOpacity] ( #finalopacity ) | ` 0.1 ` | ` number ` |
249
+ | [ duration] ( #duration ) | ` 0.4 ` | ` number ` |
250
+ | [ dissolveDuration] ( #dissolveduration ) | ` 0.15 ` | ` number ` |
251
+ | [ easing] ( #easing ) | ` ease-out ` | ` string ` |
252
+ | [ cancellationPeriod] ( #cancellationperiod ) | ` 75 ` | ` number ` |
253
+ | [ trigger] ( #trigger ) | ` "auto" ` | ` string \| boolean \| "auto" ` |
254
+ | [ disabled] ( #disabled ) | ` false ` | ` boolean ` |
255
+ | [ respectDisabledAttribute] ( #respectdisabledattribute ) | ` true ` | ` boolean ` |
256
+ | [ respectPrefersReducedMotion] ( #respectpreferredmotion ) | ` true ` | ` boolean ` |
257
+ | [ stopPropagation] ( #stoppropagation ) | ` false ` | ` boolean ` |
258
+ | [ tagName] ( #tagname ) | ` "div" ` | ` string ` |
257
259
258
260
### Details
259
261
@@ -545,6 +547,13 @@ export default {
545
547
<button v-wave =" {respectDisabledAttribute: false}" disabled >Click me!</button >
546
548
```
547
549
550
+ #### respectPrefersReducedMotion
551
+
552
+ - ** type:** ` boolean `
553
+ - _ default:_ ` true `
554
+
555
+ > If ` true ` , the wave effect will be disabled if the user's [ ` prefers-reduced-motion ` ] ( https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion ) preference is set to ` reduce ` .
556
+
548
557
#### stopPropagation
549
558
550
559
- ** type:** ` boolean `
0 commit comments