We use cookies to ensure you get the best experience on our website. Read our privacy policy

Skip to main content

Directory

QR Code Component

The QR Code component is a simple QR code generator that allows you to generate QR codes.

<QRCode qrColor="--color-primary" src="https://northstarthemes.com" width={200} />
QR Code Component Props Extends <div> HTMLElement
Prop Type Default Description
src string The source URL of the QR code
width number 200 The width of the QR code
qrOptions QRCodeOptions Options from qrcode npm package
qrColor string | { darkmode: string; lightmode: string } Color of the QR code (hex color or css variable)
Function Type Description
setSrc (options: { value: string, options?: QRCodeOptions, colors?: { darkmode: string; lightmode: string } | string }) => Promise<void> Sets the source URL of the QR code

Limited Time Launch Sale

Add QR codes to your website with our AstroJS starter template. Get started now!

GET 60% OFF!
North Star Themes Logo

Subscribe to our newsletter

Get the latest AstroJS tips and tricks right to your inbox

Email: [email protected]

© 2025 North Star Themes

Web Kit Provided By North Star Themes