Highlight

An animation wrapper component to add an onClick highlight animation in the background.

<Highlight layer='alert'>
    <div style={{ padding: '20px' }}>Arwes</div>
</Highlight>
Prop nameTypeDefaultDescription
animatebooltrue
layerenum'primary'
One of: 'primary', 'secondary', 'header', 'control', 'success', 'alert', 'disabled'
Method nameParametersDescription
onClick

Click event on element. Reproduces the animation.

Source code: src/Highlight Open in: Playground