@dreamworld/dw-ripple

3.1.5 • Public • Published

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>

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @dreamworld/dw-ripple

Weekly Downloads

105

Version

3.1.5

License

ISC

Unpacked Size

12.1 kB

Total Files

7

Last publish

Collaborators

  • chiragmoradiya
  • chetang7
  • ajay-dhameliya
  • dw-devops