Back to Nocobase

ScanInput

docs/docs/en/shared-components/form/scan-input.md

2.1.33581 B
Original Source

ScanInput

ScanInput is used to add scanning support to an input.

Basic Usage

tsx

API

PropTypeDescription
disableManualInputbooleanMake the input read-only
enableScanbooleanReserved prop; the scan button is always rendered
formatsToSupportHtml5QrcodeSupportedFormats[]Supported QR code or barcode formats
onChange`(value: stringChangeEvent<HTMLInputElement>) => void`