Skip to content

BarcodeScanner

Toggle the scanner on/off from parent component

File: ui/BarcodeScanner.tsx

Category: ui

Props

NameTypeRequiredDescription
activebooleanYes-
onDetected(value: string) => voidYes-
onError(message: string) => voidNo-
onClose() => voidNo-
default`false stops automatically) */
continuous?: boolean`Yes-

Usage

tsx
import BarcodeScanner from '@/components/ui/BarcodeScanner';

<BarcodeScanner {...props} />

Released under Commercial License