Web Components Ripple Overview

    The Ignite UI for Web Components Ripple component creates an animation in response to a touch or a mouse click.

    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 Introdução.

    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

    Você pode alterar a cor da ondulação definindo a propriedade CSS--color para qualquer cor CSS válida:

    igc-ripple {
      --color: olive;
    }
    

    API References

    Additional Resources