Serafim

Balloons

Component 755

About

shadcn/ui-like implementation of balloons.js

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Balloons to your project and fits it to your theme.

Code

How Balloons is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Balloons } from "@/components/ui/balloons"
import { Button } from "@/components/ui/button"
import { useRef } from "react"

export function DefaultBalloonsDemo() {
  const balloonsRef = useRef<{ launchAnimation: () => void } | null>(null)

  const handleLaunch = () => {
    if (balloonsRef.current) {
      balloonsRef.current.launchAnimation()
    }
  }

  return (
    <div className="flex min-h-screen flex-col items-center justify-center gap-4 p-4">      
      <Button 
        onClick={handleLaunch}
        className="bg-blue-500 hover:bg-blue-600"
      >
        Launch Balloons! 🎈
      </Button>

      <Balloons 
        ref={balloonsRef}
        type="default"
      />
    </div>
  )
}

Dependencies

More by Serafim

View all
  • Spline Scene

    Spline Scene

    9.5K
  • Testimonials with Marquee

    Testimonials with Marquee

    2.3K
  • Gradient Button

    Gradient Button

    1.9K
  • Pixel Canvas

    Pixel Canvas

    900
  • Animated Blur Number

    Animated Blur Number

    830
  • Empty State

    Empty State

    775
  • Status Badge

    Status Badge

    646
  • Hover Button

    Hover Button

    561