3.1.5 • Published 1 month ago

@dreamworld/dw-ripple v3.1.5

Weekly downloads
259
License
ISC
Repository
github
Last release
1 month ago

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-ripple

Usage

@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

  • primary Boolean. Set when ripple is to be shown in primary color.
  • secondary Boolean, Set when ripple is to be shown in secondary color.
  • disabled Boolean. Set when disabled. e.g. When icon-button is disabled, no ripple is to be shown.
  • unbounded Boolean. 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 to true. When this is set, ripple is shown in circular shape always.
  • disableHover Boolean. 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.

3.1.5

1 month ago

3.1.2-ssr.1

1 year ago

3.1.3

1 year ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.4

1 year ago

2.4.0

2 years ago

3.0.1

1 year ago

3.0.0

2 years ago

2.5.0

2 years ago

3.1.0

1 year ago

2.3.0

2 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

1.3.1

3 years ago

1.2.2

3 years ago

1.3.0

3 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago