包详细信息

@anypoint-web-components/material-ripple

anypoint-web-components2.3kApache-2.01.0.3

Adds a material design ripple to any container. It's a port of @polymer/paper-ripple for ESM.

web-components, anypoint, ripple, material design

自述文件

<material-ripple>

This is a port of @polymer/paper-ripple to ListElement and ES modules. It also removes Polymer dependencies.

Published on NPM

Testing

Usage

Installation

npm i --save @anypoint-web-components/material-ripple

In an HTML file

<html>
  <head>
    <script type="module">
      import '@anypoint-web-components/material-ripple/material-ripple.js';
    </script>
  </head>
  <body>
    <div style="position: relative">
       <material-ripple>Click me</material-ripple>
    </div>
  </body>
</html>

Development

git clone https://github.com/anypoint-web-components/material-ripple
cd material-ripple
npm install

Running the demo locally

npm start

Running the tests

npm test