Polotno
Components

QR Code Side Panel

Learn how to install and customize the QR Code side panel

Installation

npx shadcn@latest add http://registry.polotno.com:/r/qr-code.json --path ./src/components/side-panel/qr-code.tsx

After installation, the CLI creates a file in /src/components/side-panel/qr-code.tsx. You can change the destination path.

Usage

import { QrSection } from './side-panel/qr-code'; // make sure to change the path to the correct location
import { SidePanel, DEFAULT_SECTIONS } from 'polotno/side-panel';


const sections = [...DEFAULT_SECTIONS, QrSection];

<SidePanel store={store} sections={sections} />

Demo

On this page