Skip to content

    Browse components

    Warp Highway

    A night highway of light trails rushing toward you. Hold the pointer down to punch it into warp.

    Warp Highway

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/warp-highway

    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/warp-highway.json

    Usage

    import { WarpHighway } from "@/components/ui/warp-highway";
    
    <div className="relative h-96">
      <WarpHighway boost={4} />
    </div>

    Props

    PropTypeDefaultDescription
    leftColorstring"#ff2d78"Oncoming light trails.
    rightColorstring"#3ee0ff"Outgoing light trails.
    sideColorstring"#c9c3ff"Lane markings and roadside posts.
    speednumber1Cruise speed.
    boostnumber4Speed multiplier while the pointer is held.
    densitynumber0.6How busy the lanes are.
    classNamestring—Extra classes for the root element.