Components

Click spark

Wrap anything and every click inside throws a ring of sparks from the exact point — a tiny reward that makes a whole page feel more physical.

Paste it into ChatGPT, Claude, Cursor or v0.
count8
radius26

Usage

React
import { ClickSpark } from '@vizzele/react';

<ClickSpark count={8} radius={26}>
  <main>{/* your page */}</main>
</ClickSpark>

Props

PropTypeDefaultDescription
countnumber8Sparks per click.
radiusnumber26How far they fly (px).
colorstring—One colour; the iridescent palette by default.
durationnumber450Milliseconds.

Accessibility

  • Sparks are aria-hidden and do not catch the pointer, so clicks reach what is underneath.
  • Nothing is drawn with reduced motion.