Display

QR Code

Premium QR code display for sharing links, apps, or authentication data.

Share this Page

A dynamic example showing how to share the current page URL.

Share this Page

Scan this code to open this documentation on your mobile device.

BiibaOS Documentation
Native-feel UI components for React
https://biiba.os
'use client'

import { QRCode, Stack, Text } from 'biibaos'
import { useState, useEffect } from 'react'

export default function SharePage() {
  const [url, setUrl] = useState('')
  
  useEffect(() => {
    if (typeof window !== 'undefined') {
      setUrl(window.location.href)
    }
  }, [])

  return (
    <Stack direction="column" gap={32} align="center">
      <Text variant="h3" weight="bold">Share this Page</Text>
      <QRCode 
        variant="card"
        value={url || 'https://biiba.os'}
        title="BiibaOS"
        description="Scan to open"
        showLink
        size={200}
      />
    </Stack>
  )
}

Visual Styles

Choose between flat, card, and outline variants.

'use client'

import React from 'react'
import { QRCode, Stack } from 'biibaos'

export default function App() {
  return (
    <Stack direction="row" gap={32}>
      <QRCode value="biiba.ui" variant="flat" size={100} />
      <QRCode value="biiba.ui" variant="card" size={100} />
      <QRCode value="biiba.ui" variant="outline" size={100} />
    </Stack>
  )
}

Properties

PropTypeDefaultDescription
valuestringRaw data string or URL to encode into the QR grid
sizenumber160Predefined size scaling preset
level'L' | 'M' | 'Q' | 'H''M'Configures the level option
titlestringStructural modal header title
descriptionstringSupporting description or helper guidance text
showLinkbooleanfalseConfigures the showLink option
variant'card' | 'flat' | 'outline''flat'Semantic design theme variant
logostringLogo image source to show in the center
logoSizenumber40Size of the logo in pixels