MCPcopy
hub / github.com/untitleduico/react / QRCodeProps

Interface QRCodeProps

components/shared-assets/qr-code.tsx:29–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27};
28
29interface 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
50export const QRCode = ({ size = "md", value, options, className }: QRCodeProps) => {
51 const ref = useRef<HTMLDivElement | null>(null);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected