← All components
Interaction / effect

Click Spark

A precise burst of radial sparks, only when you interact.

PLAYGROUND
Live preview
Preparing preview…

Take it with you.

SOURCE ACCESS

Preview freely. Unlock the files.

Enter the shared password to copy the complete source, download every file, and install components in your app.

Access lasts 24 hours. Your preview settings stay with you.

Component notes

  • The included Demo.tsx and shared/demo.css recreate the complete preview. Import the main component to compose your own design.
  • No continuous work while idle, offscreen, or paused. Reduced motion renders a settled view.
React 19CSS

React Bits · MIT with Commons Clause. Used with explicit project permission; see bundled notice.

Props

PropTypeDefaultDescription
children (required)ReactNodeundefinedButton label
sparkColorstring#ffffffSpark color
sparkSizenumber10Line length
sparkRadiusnumber15Radius
sparkCountnumber8Spark count
durationnumber milliseconds400Duration
easinglinear|ease-in|ease-out|ease-in-outease-outEasing
extraScalenumber1Spread multiplier
pausedbooleanfalseSuspend motion without adding paused wall time to the animation.
replayTokennumber0Change this value to restart the animation.
classNamestringAdditional classes for the outer element.