Skip to content

    Browse components

    Sweep Scope

    A phosphor radar scope: a rotating sweep with a fading trail, range rings, bearing ticks and contacts that ping as the beam passes. WebGL.

    Sweep Scope

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/sweep-scope

    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/sweep-scope.json

    Usage

    import { SweepScope } from "@/components/ui/sweep-scope";
    
    <div className="relative h-96">
      <SweepScope color="#34d399" rings={4} />
    </div>

    Props

    PropTypeDefaultDescription
    colorstring"#34d399"Phosphor color.
    speednumber1Sweep speed multiplier.
    ringsnumber4Range rings inside the scope.
    trailnumber1Sweep trail length.
    blipsnumber9Number of contacts.
    sizenumber0.85Scope size, fraction of height.
    classNamestring—Extra classes for the root element.