Skip to content
caliper ui pro docs

Radar scan

A nearby search: a sweep turns over rings and each item appears as a blip the first time the beam passes it, then brightens on every pass. Found items join the list beside it, nearest first, and choosing either the blip or the row selects both.

Pro

Searching… 0 found

    When to use

    • Finding nearby devices, people or places before sharing or pairing.
    • Discovery steps where results arrive over a few seconds.

    When not to use

    • Results that are all available at once; show the list.
    • Real positions people will navigate by.

    Installation

    terminal
    pnpm dlx shadcn@latest add @caliper/radar-scan

    Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

    API reference

    RadarScan

    5 props

    Also accepts the native props of its root element and a ref.

    PropTypeDefaultDescription
    items *RadarItem[]—
    selectedstring | nullnull
    onSelect((item: RadarItem) => void)—
    periodnumber3.2Seconds per turn of the sweep.
    labelstring"Nearby"Names what is being looked for, e.g. "Nearby devices".

    Keyboard

    • No custom key handling; Tab and the native activation keys do the work.

    Accessibility

    It is built on native elements and keeps aria-hidden, aria-pressed, aria-label and aria-live in step with state. Changes that matter are announced through a live region.

    Motion

    • State changes animate with the library's shared durations and curves, so its timing matches every other part.
    • Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.

    Notes for AI

    Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

    /docs/components/radar-scan.md

    The index of every part is at /llms.txt.

    More in Compare & browse