Open Temzasse opened 6 years ago
Add a ripple prop that defaults to true.
ripple
The ripple effect is applied to the ButtonContent styled component so we could just make two components instead: normal ButtonContent and ButtonContentRipple.
ButtonContent
ButtonContentRipple
Then we can just render one of them based on the ripple prop.
I like the HoC approach to the ripple, personally.
Add a
ripple
prop that defaults to true.The ripple effect is applied to the
ButtonContent
styled component so we could just make two components instead: normalButtonContent
andButtonContentRipple
.Then we can just render one of them based on the
ripple
prop.