Skip to content

    Browse components

    Arc Frame

    Wraps any element in crackling, glowing arcs of electricity that crawl around its edge.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/arc-frame

    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/arc-frame.json

    Usage

    import { ArcFrame } from "@/components/ui/arc-frame";
    
    <ArcFrame color="#7df9ff" radius={24}>
      <div className="p-8">Charged up</div>
    </ArcFrame>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Content to electrify.
    colorstring"#7df9ff"Arc and glow color.
    speednumber1Animation speed multiplier.
    chaosnumber1How far the arcs stray from the edge.
    thicknessnumber2Line width in px.
    radiusnumber24Corner radius in px.
    classNamestring—Extra classes for the root element.