badtz

Star Button

Buttons 97

About

Here is Star Button component

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

Code

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

Usage.tsx

"use client"

import { useEffect, useState } from "react"
import { useTheme } from "next-themes"

import { StarButton } from "@/components/ui/star-button"

export default function StarButtonDemo() {
  const { theme } = useTheme()
  const [lightColor, setLightColor] = useState("#FAFAFA")

  useEffect(() => {
    setLightColor(theme === "dark" ? "#FAFAFA" : "#FF2056")
  }, [theme])

  return (
    <div>
      <StarButton lightColor={lightColor} className="rounded-3xl">
        Hover me
      </StarButton>
    </div>
  )
}

More by badtz

View all
  • Animated Card Chart

    Animated Card Chart

    1.1K
  • Animated Card Diagram

    Animated Card Diagram

    680
  • Animated Card

    Animated Card

    488
  • dock

    dock

    364
  • Glowing Button

    Glowing Button

    228
  • Cursor Cards

    Cursor Cards

    206
  • Border Beam

    Border Beam

    205
  • Blur Reveal

    Blur Reveal

    77

More in Buttons

View all
  • Texture Button

    Texture Button

    122
  • Button

    Button

    172
  • HeroUI Button Group

    HeroUI Button Group

    1
  • Button

    Button

    88
  • Native Button

    Native Button

    7
  • Button

    Button

    74
  • Button Group

    Button Group

    5
  • Button

    Button

    21