New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rmwc/ripple

Package Overview
Dependencies
Maintainers
0
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/ripple

RMWC Ripple component

14.3.5
latest
Source
npm
Version published
Maintainers
0
Created
Source

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.

  • Module @rmwc/ripple
  • Import styles:
    • Using CSS Loader
      • import '@rmwc/ripple/styles';
    • Or include stylesheets
      • '@material/ripple/dist/mdc.ripple.css'
  • MDC Docs: https://material.io/develop/web/components/ripples/

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

NameTypeDescription
accentbooleanMakes the ripple an accent color
disabledbooleanmakes the ripple disabled
foundationRefRef<MDCRippleFoundation<>>Advanced: A reference to the MDCFoundation.
primarybooleanMakes the ripple primary
surfacebooleanFor internal use
unboundedbooleanMakes the ripple unbounded

Keywords

rmwc

FAQs

Package last updated on 24 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts