Text input with a camera scan button; the scanner dialog decodes EAN/UPC, ISBN, Code 128 and QR with zbar-wasm, loaded on first open.
pnpm dlx shadcn@latest add "https://ui-patterns.stereobooster.com/r/barcode-input.json"