lara-light-indigo

Ripple

Ripple component adds ripple effect to the host element.

Default
Green
Orange
Purple
Import via Module

import PrimeReact from 'primereact/api';
import { Ripple } from 'primereact/ripple';
 
Import via CDN

<script src="https://unpkg.com/primereact/core/core.min.js"></script>
 
Getting Started

Ripple effect is an optional animation for the supported components such as buttons. It is disabled by default and needs to be enabled at your app's main container (e.g. App.js) using the PrimeReact class.


PrimeReact.ripple = true;
 

Note: That would be it to enable ripple on PrimeReact components, next section describes how to use it with your own components and standard elements.

Usage

Ripple is a component that needs to be imported and activated using PrimeReact.ripple = true


import { Ripple } from 'primereact/ripple';

<div className="p-ripple">
    <Ripple />
</div>
 
Styling

Default styling of the animation adds a shade of white. This can easily be customized using css that changes the color of .p-ink element.


<div className="p-ripple purple">
    <Ripple />
</div>
 

.p-ripple.purple .p-ink {
    background: rgba(256,39,176,.3);
}
 
Styling
NameElement
p-rippleHost element.
p-inkRipple element.
p-ink-activeRipple element during animating.
Dependencies

None.

Component Scale

Input Style

Ripple Effect

Free Themes

Built-in component themes created by the PrimeReact Theme Designer.

Bootstrap
Blue
Purple
Blue
Purple
Material Design
Indigo
Deep Purple
Indigo
Deep Purple
Material Design Compact
Indigo
Deep Purple
Indigo
Deep Purple
Tailwind
Tailwind Light
Fluent UI
Blue
PrimeOne Design - 2022 NEW
Lara Indigo
Lara Blue
Lara Purple
Lara Teal
Lara Indigo
Lara Blue
Lara Purple
Lara Teal
PrimeOne Design - 2021
Saga Blue
Saga Green
Saga Orange
Saga Purple
Vela Blue
Vela Green
Vela Orange
Vela Purple
Arya Blue
Arya Green
Arya Orange
Arya Purple
Premium Themes

Premium themes are only available exclusively for PrimeReact Theme Designer subscribers and therefore not included in PrimeReact core.

Soho Light
Soho Dark
Viva Light
Viva Dark
Mira
Nano

Legacy Free Themes

Nova
Nova Alt
Nova Accent
Luna Blue
Luna Green
Luna Amber
Luna Pink
Rhea

Premium Create-React-App Templates

Beautifully crafted premium create-react-app application templates by the PrimeTek design team.

Sakai
Atlantis
Freya
Ultima
Diamond
Sapphire
Serenity
Babylon
Avalon
Apollo
Roma