Visão geral do Web Components Ripple
O componente Ondulação Ignite UI for Web Components cria uma animação em resposta a um toque ou clique do mouse.
Web Components Ripple Example
Usage
Primeiro, você precisa instalar o Ignite UI for Web Components executando o seguinte comando:
npm install igniteui-webcomponents
Before using the IgcRippleComponent, you need to register it as follows:
import { defineComponents, IgcRippleComponent } from "igniteui-webcomponents";
import 'igniteui-webcomponents/themes/light/bootstrap.css';
defineComponents(IgcRippleComponent);
Para uma introdução completa ao Ignite UI for Web Components, leia o tópico Comecando.
The simplest way to start using the IgcRippleComponent is as follows:
<igc-button>
<igc-ripple></igc-ripple>
Ripple Button
</igc-button>
You can add the IgcRippleComponent 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;
}