Click spark

Pro

Sparks that fly out from wherever you click: a ring of short lines shoots outward, shortens and fades on one canvas laid over any content, from a mouse, a finger or the keyboard.

A recording of the component itself. With Pro you get its full source and it runs in your app.

What you get

  • Wrap anything: the canvas never takes a pointer event
  • Keyboard clicks spark from the control itself
  • Colour, count, size, reach and duration props
  • Draws only while sparks are alive
  • One TypeScript file in your project, yours to edit. No runtime package.
  • Keyboard, screen reader and reduced motion support; light and dark; your shadcn theme.

Install

npx shadcn@latest add @goodui-pro/click-spark

Needs a Pro license key in your registry config: two-minute setup. The file lands in components/goodui/click-spark.tsx.

More Pro components

Notification center

A lock-screen notification stack: cards pile up per app, fan out with a staggered spring, swipe away or uncover actions, new ones drop in on top and clear all sweeps them off.

Pro

Live cursors

Multiplayer presence for any surface: named cursors glide on spline paths rebuilt from sparse updates, with chat bubbles, reaction bursts, selection boxes, an avatar stack and a follow camera.

Pro

Pull to refresh

A scroll area you pull past its top on a rubber band: a pill hangs on an elastic tether and draws its ring with the distance, the tether snaps at the line, and it spins until onRefresh resolves, then shows a check.

Pro