Ripple
A circle that spreads from where you press. Button and Item use it.
Usage
Press the button. The circle starts where the pointer was released.
tsx
<Ripple>
<button className="rounded-margo-base border-margo border-border px-4 py-3">press me</button>
</Ripple>Colour
tsx
<Ripple rippleClassName="bg-on-main/30">
<button className="rounded-margo-base border-margo border-border px-4 py-3">another colour</button>
</Ripple>Reference
| prop | type | default | |
|---|---|---|---|
children | ReactElement | — | a single element |
disabled? | boolean | false | stops new circles |
rippleClassName? | string | — | classes of the circle, usually its colour; primary darken when you pass none |