Socket
Socket
Sign inDemoInstall

@rmwc/ripple

Package Overview
Dependencies
6
Maintainers
1
Versions
166
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/ripple


Version published
Maintainers
1
Install size
1.63 MB
Created

Readme

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

FAQs

Last updated on 24 Apr 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc