touch-ripple | 触摸涟漪反馈效果 ripple | Animation library
kandi X-RAY | touch-ripple Summary
kandi X-RAY | touch-ripple Summary
触摸涟漪反馈效果 ripple
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of touch-ripple
touch-ripple Key Features
touch-ripple Examples and Code Snippets
Community Discussions
Trending Discussions on touch-ripple
QUESTION
I'm trying to get Material UI's TouchRipple component to work so that I can use the ripple effect at times outside of the ButtonBase component. The docs, however, say nothing about how to use it.
In older versions of Material UI, it seems you are supposed to just wrap it around the React component but in v3, it doesn't work as it doesn't take any children.
How do you use the TouchRipple component in Material UI v3?
...ANSWER
Answered 2019-Jul-03 at 19:28Update for v4 — 3 of July 2019
createRippleHandler
is no more. Still, ButtonBase is the best tool for what the question is asking for.
It’s not exactly a simple utility to use.
If you have a look at ButtonBase you’ll see that there are a lot of required things to make it work.
Basically you need to manually handle the events and ask the TouchRipple to start a new ripple.
They made @material-ui/core/ButtonBase/createRippleHandler
(used indeed in ButtonBase) to make their life easier.
Do not recommend. Use ButtonBase instead.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install touch-ripple
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page