styled-qr-code
styled-qr-code copied to clipboard
Shape isn't an option
One quite important option in QR Code Styling is shape which helps define whether you want the QR Code to be a circle or a square.
type Options = {
width?: number;
height?: number;
margin?: number;
data?: string;
image?: string | Buffer | Image;
qrOptions?: {
typeNumber?: TypeNumber;
mode?: Mode;
errorCorrectionLevel?: ErrorCorrectionLevel;
};
imageOptions?: {
hideBackgroundDots?: boolean;
imageSize?: number;
crossOrigin?: string;
margin?: number;
};
dotsOptions?: {
type?: DotType;
color?: string;
gradient?: Gradient;
};
cornersSquareOptions?: {
type?: CornerSquareType;
color?: string;
gradient?: Gradient;
};
cornersDotOptions?: {
type?: CornerDotType;
color?: string;
gradient?: Gradient;
};
backgroundOptions?: {
color?: string;
gradient?: Gradient;
};
};
I can't see it anywhere in the types you provide, was that forgotten?