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 React, { useState, useEffect } from 'react'
import { Stack, Text, QRCode } from 'biibaos'

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

  return (
    <Stack direction="column" gap={32} align="center" fullWidth>
      <Stack direction="column" gap={8} align="center">
        <Text variant="h3" weight="bold">Share this Page</Text>
        <Text color="muted" align="center" size="sm">
          Scan this code to open this documentation on your mobile device.
        </Text>
      </Stack>
      <QRCode
        variant="card"
        value={url || 'https://biiba.os'}
        title="BiibaOS Documentation"
        description="Native-feel UI components for React"
        showLink
        size={200}
      />
    </Stack>
  )
}

Visual Styles

Choose between flat, card, and outline variants.

'use client'

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

export default function App() {
  return (
    <Stack direction="row" gap={32} wrap align="center" justify="center" fullWidth>
          <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