This component is created on top of the Mantine library.
Adds a reflection effect to a component. It simply wraps the content to be reflected.
👉 You can find more components on the Mantine Extensions Hub library.
npm install @gfazioli/mantine-reflectionor
yarn add @gfazioli/mantine-reflectionAfter installation import package styles at the root of your application:
import '@gfazioli/mantine-reflection/styles.css';import { Reflection } from '@gfazioli/mantine-reflection';
function Demo() {
return (
<Reflection>
<img
width={150}
style={{ display: 'block', borderRadius: '50%' }}
alt="test"
src="https://source.unsplash.com/9QmbsTDAI4g/150x150"
/>
</Reflection>
);
}