Chrome
CreativeScanner 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.
npx @galactrex/ui add scanner-frameUsage
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.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | What is scanned. |
scanning | boolean | true | Sweeping while true. |
result | ReactNode | — | Shown once it stops. |
duration | number | 2.2 | Seconds per pass. |
className | string | — | 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.