A shadcn-style qr code component built with Ark UI primitives.

Installation

npx shadcn@latest add @ark-cn/qr-code

Usage

import * as QrCode from "@/components/ui/qr-code"

Read exported parts in src/components/ui/qr-code.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Basic

Controlled

Download

Error correction

Fill

Overlay

Ark UI

Root provider

Current value: https://ark-ui.com

Context

Value length: 18

API reference

This component mirrors the upstream Ark UI primitive.

See the ARK UI documentation for the full API.