Click Spark

Click Spark: Cursor particle spark effect that emits directional sparks on click. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Click Spark

npx motion-ui-skill add click-spark

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • next-themes
  • react
  • tailwind-merge

Source files

Click Spark

Component from Motion UI: click-spark

Install

npx motion-ui-skill add click-spark

Dependencies

  • clsx
  • motion
  • next-themes
  • react
  • tailwind-merge

Usage

"use client";

import { ClickSpark as ClickSpark } from "@/components/craft/click-spark";

export function Example() {
  return (
    <div className="p-6">
      <ClickSpark />
    </div>
  );
}

Browse this category