@rmwc/ripple
TypeScript icon, indicating that this package has built-in type declarations

14.3.4 • Public • Published

Ripples

MDC Ripple provides the JavaScript and CSS required to provide components (or any element at all) with a material “ink ripple” interaction effect. It is designed to be efficient, uninvasive, and usable without adding any extra DOM to your elements.

Ripples will wrap whatever child component you pass it and apply the appropriate classes and styles.

<Ripple>
  <p>Standard Ripple</p>
</Ripple>
<Ripple primary>
  <p>Primary</p>
</Ripple>
<Ripple accent>
  <p>Accent</p>
</Ripple>
<Ripple unbounded>
  <p>Unbounded</p>
</Ripple>

Ripple

A component for adding Ripples to other components.

Props

Name Type Description
accent boolean Makes the ripple an accent color
disabled boolean makes the ripple disabled
foundationRef Ref<MDCRippleFoundation<>> Advanced: A reference to the MDCFoundation.
primary boolean Makes the ripple primary
surface boolean For internal use
unbounded boolean Makes the ripple unbounded

Readme

Keywords

Package Sidebar

Install

npm i @rmwc/ripple

Weekly Downloads

11,444

Version

14.3.4

License

MIT

Unpacked Size

13.7 kB

Total Files

11

Last publish

Collaborators

  • jamesmfriedman