Black Friday: 30% off Pro

Get 30% off

Updated

QR Share

Pro

Preview

Customize

Colours
Size184px
Duration0.70s

Installation

Pro

QR Share is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Buying? Use the email you'll sign in with. Your license is tied to it.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/qr-share

Usage

import { QrShare } from "@/components/uibrik/qr-share/qr-share";​<QrShare  url="https://uibrik.com/components/qr-share"  colors={["#ef4466", "#e8890c", "#2f7cf6", "#7c5cff"]}  size={184}  duration={0.7}  logo={<Mark />}  filename="qr-code.png"  onCopy={(url) => {}}  // label="…"/>

Where to use QR Share

  • Share to phone

    Visitors on desktop scan a page, invite or file straight onto their phone.

  • Event and invite links

    A join link that shows its code on demand, with the link to copy underneath.

    Pairs with Invite Members

  • Print and slides

    Download a clean PNG of the code for posters, slides and packaging.

Props

QrShare
url
Type string
"https://uibrik.com/components/qr-share"
The link to share.
level
Type "L" | "M" | "Q" | "H"
"M"
Error correction: how much of the code can be damaged and still scan. A logo always uses H.
colors
Type string[]
["#ef4466","#e8890c","#2f7cf6","#7c5cff"]
The colours the gradient flows through, in order, looping back to the first. The finished code is still plain ink.
color
Type string
"#2f7cf6"
The hue the modules carry as they arrive, in light and deep shades; they settle to ink.
size
Type number
184
Width of the code.
duration
Type number
0.7
How long the code takes to build.
logo
Type ReactNode
–
A mark in the middle of the code. Raises error correction to H so it still scans.
label
Type string
–
Shown in the pill. Defaults to the link without its protocol.
filename
Type string
"qr-code.png"
Name of the downloaded PNG.
onCopy
Type (url) => void
–
Called after the link is copied.
className
Type string
–
Classes for the shell.