Rendyn

Component library

189 components

Product blocks

Qr Code

QR Code renders supplied data with configurable colors and error correction.

Interactive exampleReact Tailwind CSS

Practical React example

Offer a scannable version of a destination that is also available as a normal link.

Before you copy and paste

Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/qr-code/index.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Listed package dependencies: culori, qrcode.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Offer a scannable version of a destination that is also available as a normal link

// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
"use client";

import { QRCode } from "@/components/kibo-ui/qr-code";

const Example = () => <QRCode data="https://www.haydenbleasel.com/" />;

export default Example;

Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.

Keep data limited to the intended public URL or share payload, and retain a readable link or text alternative beside the graphic.

Customization

QRCodeProps.data
Required; string.
QRCodeProps.foreground
Optional; string.
QRCodeProps.background
Optional; string.
QRCodeProps.robustness
Optional; "L" | "M" | "Q" | "H".

Integration notes

  • Never embed secrets, credentials or unnecessary personal data into a publicly shown QR code.
  • Test contrast, quiet space and scanning at the actual printed or displayed size.
  • TypeScript consumers need compatible Culori declarations, such as @types/culori@4.0.1, alongside the runtime packages. Do not replace the library’s types with an untyped module shim.

Component source: Kibo UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP