Scoped to an area
With target, only clicks inside that element spark. Try the buttons or the empty space around them.
const ref = useRef<HTMLDivElement>(null);
<div ref={ref}>
<ClickSpark target={ref} />
<button>Save</button>
<button>Share</button>
<button>Archive</button>
</div>
// or app-wide, once:
<ClickSpark />