badtz

Border Beam

Cards 181

About

Here is Border Beam component

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

Code

How Border Beam 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 { BorderBeam } from "@/components/ui/border-beam"

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

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

  return (
    <div className="relative overflow-hidden rounded-lg shadow-sm">
      <BorderBeam lightColor={lightColor} lightWidth={350} duration={8} />
      <div className="h-full w-full max-w-72 space-y-2 px-6 py-4">
        <h3 className="font-gilroy text-2xl">Border Beam</h3>
        <p className="text-sm">
          This card showcases a dynamic border beam effect, adding a subtle,
          animated glow around the edges.
        </p>
      </div>
    </div>
  )
}

Dependencies

More by badtz

View all
  • Animated Card Chart

    Animated Card Chart

    1K
  • Animated Card Diagram

    Animated Card Diagram

    626
  • Animated Card

    Animated Card

    465
  • dock

    dock

    337
  • Glowing Button

    Glowing Button

    212
  • Cursor Cards

    Cursor Cards

    180
  • Star Button

    Star Button

    86
  • Cloud Orbit

    Cloud Orbit

    72

More in Cards

View all
  • Statistics Card 2

    Statistics Card 2

    264
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Stats cards with links

    Stats cards with links

    39
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    292
  • Item

    Item

    10