Skip to content

    Browse components

    Current Trace

    Pulses of glowing current race along any SVG outline, flickering and arcing as they go.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/current-trace

    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/current-trace.json

    Usage

    import { CurrentTrace } from "@/components/ui/current-trace";
    
    <CurrentTrace path="M100 18 L171 59 ..." color="#c6ff3d" label="Acme" />

    Props

    PropTypeDefaultDescription
    pathstring—SVG path data in a 200×200 viewBox. Defaults to a bolt in a hexagon.
    sizenumber240Rendered size in px.
    colorstring"#c6ff3d"Current and glow color.
    speednumber1Current speed multiplier.
    jitternumber3Px of electric jitter.
    glownumber1Glow strength multiplier.
    strokeWidthnumber2.5Stroke width in viewBox units.
    labelstring—Accessible name; omit for a decorative logo.
    classNamestring—Extra classes for the root element.