Account

Chrome

Creative

Scanner Frame

Corner sights, a trailing glow and a result once it stops. For document checks, uploads, ID capture and game scans.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add scanner-frame

Usage

Example
import { ScannerFrame } from "@/components/galactrex/scanner-frame";

<ScannerFrame scanning={checking} result="Verified"><Document /></ScannerFrame>

Source

Installs to components/galactrex/scanner-frame.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
childrenReactNode—What is scanned.
scanningbooleantrueSweeping while true.
resultReactNode—Shown once it stops.
durationnumber2.2Seconds per pass.
classNamestring—Extra classes for the outer element.

Variants

  • Verify. Scan, then 'Verified'.

Accessibility

  • A status region announces Scanning and the result.

Motion and reduced motion

  • One container-sized transform; pauses offscreen.
  • Reduced motion: no beam.