🌐
PrimeReact
primereact.org › ripple
React Ripple Component
Ripple component adds ripple effect to the host element.
Button
Button is an extension to standard input element with icons and theming.
Calendar
Calendar, also known as DatePicker, is a form component to work with dates.
DataTable
The ultimate collection of design-agnostic, flexible and accessible React UI Components.
Installation
PrimeReact is a rich set of open source components for React.
🌐
PrimeFaces
primefaces.org › primereact-v8 › ripple
PrimeReact | React UI Component Library
Ripple is a component that needs to be imported and activated using PrimeReact.ripple = true
🌐
GitHub
github.com › primefaces › primereact › issues › 1507
New Component: Ripple · Issue #1507 · primefaces/primereact
August 13, 2020 - It is used to simulate the ripple effects of the Material design system. It is automatically included in the PrimeReact components. To activate this component on all pages, PrimeReact.ripple=true m...
🌐
PrimeReact
primereact.org › configuration
PrimeReact | React UI Component Library
//_app.js import { PrimeReactProvider } from 'primereact/api'; export default function MyApp({ Component }) { const value = { ripple: true, ...
🌐
Hashnode
primetek.hashnode.dev › react-ripple
React Ripple
April 28, 2021 - React Ripple component adds ripple effect to the host element. Setup Refer to PrimeReact setup documentation for download and installation steps for your environment. Import import PrimeReact from 'primereact/api'; import { Ripple } from ...
🌐
GitHub
github.com › primefaces › primereact › issues › 1530
Ripple effect with typescript · Issue #1530 · primefaces/primereact
August 24, 2020 - **I'm submitting a [ x ] bug report Hello, I'm excited about the new ripple effect as shown in the demo of PrimeReact. I'm trying to implement it in my typescript project and I have some difficulties. Current behavior I'm getting the fol...
🌐
Telerik
telerik.com › components › overview
React Ripple Overview - KendoReact
The KendoReact Ripple component is part of the KendoReact library of React UI components. It is distributed through NPM under the kendo-react-ripple package. The Ripple is part of KendoReact premium, an enterprise-grade UI library with 120+ free and premium components for building polished, ...
🌐
GitHub
github.com › primefaces › primereact › issues › 4909
Ripple: Has no effect on touch enabled desktop screens · Issue #4909 · primefaces/primereact
September 10, 2023 - Go to the Ripple component demo and click OR Go to any component demo which supports ripple and enable it in the theme (E.g.
Author   zawasp
🌐
GitHub
github.com › primefaces › primereact › issues › 4388
Ripple Effect · Issue #4388 · primefaces/primereact
Describe the bug Your default button I used exact same code in my project but mine looks like this My package.json My main.tsx In my button "presentation" is missing. Because of that clic...
Top answer
1 of 3
9

PrimeNG >= 18

Since v18, ripple effect can be configured inside the new providePrimeNG provider function :

bootstrapApplication(RootComponent, {
  providers: [
    ..., // other providers
    providePrimeNG({
        ...,
        ripple: true
    })
  ]
});

PrimeNG <= 18

A summary for ripple effect on PrimeNG buttons :

Ripple effect is enabled globally by the PrimeNGConfig object. You must set the ripple property to true. Personnally, I prefer to do it inside the APP_INITIALIZER token, not in AppComponent :

app.module.ts

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { PrimeNGConfig } from 'primeng/api';

const initializeAppFactory = (primeConfig: PrimeNGConfig) => () => {
      // ......
      primeConfig.ripple = true;
    };

     @NgModule({
        // .....
        providers: [
           {
              provide: APP_INITIALIZER,
              useFactory: initializeAppFactory,
              deps: [PrimeNGConfig],
              multi: true,
           },
        ]
     })
    export class AppModule {}

Ripple effect only works with the help of pRipple directive from the RippleModule. This directive internally check if the ripple property from PrimeNGConfig is set to true.

The p-button component's already using pRipple directive inside his template. So, if you have enabled ripple effect globally, you have nothing more to do and you don't have to import RippleModule.

The confusing parts :

BUT, if you use an html button element with the pButton directive, you won't have ripple effect by default. You must manually add the pRipple directive and import RippleModule. (<button pButton pRipple ....>TEST</button>).

2 of 3
4

Make sure you are import and mention the ripple module in you app.module.ts file.

Can you please refer the link : https://primefaces.org/primeng/showcase/#/button

Reference image to find a solution

Find elsewhere
🌐
GitHub
github.com › primefaces › primereact › issues › 5901
Menu: No ripple effect · Issue #5901 · primefaces/primereact
February 5, 2024 - No ripple effect on clicking on Menu and PanelMenu items. It works on other menu types ... Go to https://primereact.org/menu/ and click on menu items in the demos.
🌐
GitHub
github.com › primefaces › primereact › issues › 2185
[bug] Sidebar Close button ripple effect on opposite side rather than on the button · Issue #2185 · primefaces/primereact
Sidebar close button ripple effect is on opposite side of sidebar. This behavior is more noticeable on dark themes. (Ripple is not visible but still present in light theme) ... can be clearly seen with in documentation/demo website (Visible clearly with any dark theme) https://www.primefaces.org/primereact/showcase/#/sidebar
🌐
Hashnode
primetek.hashnode.dev › angular-ripple
Angular Ripple - PrimeTek UI Component Libraries
April 28, 2021 - Angular Ripple directive adds ripple effect to the host element. Setup Refer to PrimeNG setup documentation for download and installation steps for your environment. Import import {RippleModule} from 'primeng/ripple'; Getting Started Ripple is an op...
🌐
JetBrains
youtrack.jetbrains.com › issue › WEB-54972 › Primereact-component-props-cant-be-completedresolved
Primereact component props can't be completed/resolved
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong
🌐
GitHub
github.com › primefaces › primereact › issues › 4806
Ripple / Button: Ripple effect is not active when button is disabled first · Issue #4806 · primefaces/primereact
August 21, 2023 - Describe the bug It looks like if a button is disabled to start its not updating the Ripple to be enabled when you enable the button again. Reproducer https://stackblitz.com/edit/react-24olwr-zs57yv?file=src/App.js PrimeReact version 9...
Author   ScarAnd