QR Code

A component that generates a QR code based on the provided data.

Features

  • Customize the size of the QR code in pixels
  • Set the error correction level
  • Customize the background and foreground color

Install

Import

API

Root

Props Type Default
as
AsTag | Component
div
asChild
boolean
false
ErrorCorrectionLevel
'M' | 'L' | 'Q' | 'H'
M
value
string
-

Item

Props Type Default
backgroundColor
string
#FFF
foregroundColor
string
#000
size
number
100