ValyroUI Русская версия

Ripple

Material-style press ripple. Pro · Effects › Cursor and press feedback

Material-style press feedback for any clickable element: a ripple spreads from the press point (or from the centre for Enter and Space), clipped to the element's own corner radius and tinted with its text colour, and fades once released. Ripples are CSS animations of transform and opacity, removed when done; nothing re-renders. Disabled elements don't ripple; with reduced motion the ripple fades in place without spreading.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add ripple
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { Ripple } from 'valyro-ui-pro';

Props

PropTypeDefault
inlinebooleantrueWrap inline, for buttons and chips. Pass false for full-width rows and cards.
colorstringRipple colour. Default: the text colour of the wrapped element.
disabledbooleanfalseTurns ripples off. A disabled wrapped element never ripples regardless.

Related components

Previous: Tilt Card · Next: Confetti · All Effects