You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
feat(ripple): export util from @material/ripple (#751)
Resolves#253: The docs recommend using certain functions from util when implementing an adapter for the ripple foundation. Export util from index.js so this is possible.
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.
38
39
@@ -125,13 +126,13 @@ First import the ripple JS
125
126
##### ES2015
126
127
127
128
```javascript
128
-
import {MDCRipple, MDCRippleFoundation} from '@material/ripple';
129
+
import {MDCRipple, MDCRippleFoundation, util} from '@material/ripple';
But as far as we know, no browsers yet support it. We have added a `@supports` clause into our code
409
412
to make sure that it can be used as soon as browsers adopt it, but for now this means that _changes
410
413
to your theme via a custom variable will not propagate to ripples._ We don't see this being a gigantic issue as we envision most users configuring one theme via sass. For places where you do need this, special treatment will have to be given.
414
+
415
+
### The util API
416
+
417
+
External frameworks and libraries can use the following utility methods when integrating a component.
0 commit comments