Skip to Content
πŸ“£ See the latest news β†’
Resources🧩 ComponentsMask

Mask

Mantine Mask is a React/Mantine component that applies a cursor-follow or static spotlight using CSS masks, revealing content inside the spotlight and softly fading the outside.

Full documentation and API reference available at gfazioli.github.io/mantine-maskΒ 

Installation

yarn add @gfazioli/mantine-mask

Overview

Mask creates a spotlight/reveal effect on content:

  • Cursor-follow mode β€” spotlight follows the mouse
  • Static mode β€” fixed spotlight position
  • Configurable radius β€” size of the revealed area
  • Soft edge fading β€” smooth transition from visible to hidden
  • Any content β€” works with images, text, or any React nodes
  • Performance optimized β€” CSS mask-based, no canvas
Last updated on