Ripple
The mdcRipple
directive creates a configurable ripple surface.
API
Directive: MdcRippleDirective
Selector: [mdcRipple]
Directive for making an element a ripple surface. The ripple can be customized
with the provided
Sass Mixins.
Alternatively you can set the surface
to get a default styled ripple.
Property | Description |
---|---|
@Input()
mdcRipple
boolean
|
Set this input to false to remove the ripple effect from the surface. |
@Input()
unbounded
boolean
|
When this input has a value other than false, the ripple is unbounded.
Surfaces for bounded ripples should have |
@Input()
dimension
number
|
This input sets the dimension of the ripple. This input can be set to null for returning to the defaults, which uses the surface element to compute the bounds of the ripple. |
@Input()
disabled
boolean
|
This input can be used to programmatically enable/disable the ripple.
When true, the ripple effect will be disabled, when false the ripple
effect will be enabled. When not set, or |
@Input()
surface
boolean | "primary" | "accent"
|
When this input has a value other than false, the ripple element will get the "mdc-ripple-surface" class. That class has styling for bounded and unbounded ripples in accordance with your theme customizations. Without this property, you have to supply your own ripple styles, using the provided Sass Mixins. To apply a standard surface ripple, set the value to |