Blazor Ripple Overview
The Ignite UI for Blazor Ripple component creates an animation in response to a touch or a mouse click.
Blazor Ripple Example
Usage
Register the Ignite UI for Blazor services:
// in Program.cs file
builder.Services.AddIgniteUIBlazor();
Registering IgbRippleModule, the client resource module of the IgbRipple, is optional: the component loads its resources when it first renders. Listing it in builder.Services.AddIgniteUIBlazor(typeof(IgbRippleModule)) can be used to preload resources or to support elements created only on the client (see Component Modules).
You will also need to link an additional CSS file to apply the styling to the IgbRipple component. The following needs to be placed in the app’s host page (wwwroot/index.html in a standalone Blazor WebAssembly or Blazor Hybrid app, Pages/_Host.cshtml in a Blazor Server app, Components/App.razor in a Blazor Web App):
<link href="_content/IgniteUI.Blazor/themes/light/bootstrap.css" rel="stylesheet" />
The simplest way to start using the IgbRipple is as follows:
<IgbButton Variant="@ButtonVariant.Contained">
Ripple Button
<IgbRipple></IgbRipple>
</IgbButton>
You can add the IgbRipple component to any web element as long as its CSS position property is set to any other value than static;
Examples
Color
You can change the color of the ripple by setting the --color CSS property to any valid CSS color:
igc-ripple {
--color: olive;
}