@dreamworld/dw-ripple v3.1.7
dw-ripple
Ripple element created as child-class of mwc-ripple
What are the changes in mwc-ripple?
- To show ripple in secondary color, they have used property named
accent. Which is confusing in terms of standard theming variables.
Installation
npm install @dw/dw-rippleUsage
@import '@dw/dw-ripple/dw-ripple'; .demo-box { width: 96px; height: 96px; border: 1px solid gray; }
<div class="demo-box">
Default
<dw-ripple></dw-ripple>
</div>Demo
Properties
primaryBoolean. Set when ripple is to be shown in primary color.secondaryBoolean, Set when ripple is to be shown in secondary color.disabledBoolean. Set when disabled. e.g. When icon-button is disabled, no ripple is to be shown.unboundedBoolean. By defualt ripple effect are shown from the point where user clicks. If we want to show ripple always from the center (irrespective of the click position) then set totrue. When this is set, ripple is shown in circular shape always.disableHoverBoolean. Set to disabl hover and focuse.
Theming
By default ripple is shown in #000. When need to change it at special place, set --mdc-ripple-color CSS property to any other color.
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago