forked from no23reason/react-qr-svg
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
37 lines (35 loc) · 768 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import * as React from "react";
interface QRCodeProps {
/**
* The value to encode in the code
*/
value: string;
/**
* QR Error correction level
*/
level?: "L" | "M" | "Q" | "H";
/**
* Color of the bright squares
*/
bgColor?: string;
/**
* Color of the dark squares
*/
fgColor?: string;
/**
* Color of the SAFE Network logo
*/
logoColor?: string;
/**
* Density level for connections between dots
*/
connsDensity?: "N" | "L" | "M" | "H";
/**
* Render the QR code as an <img> element instead of <svg>
*/
asImg?: false;
}
/**
* The component
*/
export function QRCode(props: QRCodeProps & React.SVGProps<SVGElement>): React.ReactElement<{}>;