Skip to content

    Browse components

    Glow Border

    A comet of light orbits the element's border.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/glow-border

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/glow-border.json

    Usage

    import { GlowBorder } from "@/components/ui/glow-border";
    
    <GlowBorder>
      <button className="px-6 py-3">Get started</button>
    </GlowBorder>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Content inside the border.
    colorstring"#c6ff3d"Glow color.
    speednumber4Seconds per rotation.
    thicknessnumber1Border width in px.
    radiusnumber16Corner radius in px.
    backgroundstring"#0a0a0a"Inner fill.
    classNamestring—Extra classes for the root element.