BarcodeScanner
Toggle the scanner on/off from parent component
File: ui/BarcodeScanner.tsx
Category: ui
Props
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | Yes | - |
onDetected | (value: string) => void | Yes | - |
onError | (message: string) => void | No | - |
onClose | () => void | No | - |
default | `false stops automatically) */ | ||
| continuous?: boolean` | Yes | - |
Usage
tsx
import BarcodeScanner from '@/components/ui/BarcodeScanner';
<BarcodeScanner {...props} />