Spark Button
Click bursts into particle sparks.
Try it: Click — sparks erupt from the hit point.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/spark-button.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/spark-button. You can also copy the source into components/ui/spark-button.tsx (view on GitHub).
Usage
import { SparkButton } from '@/components/ui/spark-button'Dependencies
motion
Related Buttons components
- Liquid Fill Button
Liquid rises to fill on hover or press.
- Magnetic Button
Button that magnetically follows the cursor; the label leans a little further for parallax, with a spring press state. Solid, accent and glass surfaces.
- Split Reveal Button
Face splits open to reveal the label.
- Focus Bloom Button
Focus/hover bloom steered by pointer.
- Gravity Drop Button
Icon falls in with a bounce on hover.
- Inkline Action
Text action with a seeded ink underline.