| 27 | }; |
| 28 | |
| 29 | interface QRCodeProps { |
| 30 | /** |
| 31 | * The value to encode in the QR code. |
| 32 | */ |
| 33 | value: string; |
| 34 | /** |
| 35 | * Additional options to customize the QR code. |
| 36 | */ |
| 37 | options?: QRCodeStylingOptions; |
| 38 | /** |
| 39 | * The size of the QR code. |
| 40 | * |
| 41 | * @default "md" |
| 42 | */ |
| 43 | size?: "md" | "lg"; |
| 44 | /** |
| 45 | * The class name to apply to the QR code. |
| 46 | */ |
| 47 | className?: string; |
| 48 | } |
| 49 | |
| 50 | export const QRCode = ({ size = "md", value, options, className }: QRCodeProps) => { |
| 51 | const ref = useRef<HTMLDivElement | null>(null); |
nothing calls this directly
no outgoing calls
no test coverage detected