Website URL
A complete HTTPS address renders as a high-contrast QR code.
url="https://ui.welkdock.com"
WelkUI!REACT EDITIONExplore live variants, compare states, and learn every prop. Pick a component to start.
Generates a locally rendered SVG QR code for an absolute HTTP or HTTPS URL. The QR generator is bundled with WelkUI, so consumers do not need to install it separately. Invalid URLs show an accessible error instead.
import { WelkQRCode } from "@welkui/react";
<WelkQRCode url="https://ui.welkdock.com" />
<WelkQRCode url="https://ui.welkdock.com" originalCode />Import @welkui/react/styles.css once in your app. Stateful snippets belong inside a React component.
These are real components, not screenshots. Compare their appearance and try the controls. Key props below each preview show what changes; use the usage example above for imports and component setup.
A complete HTTPS address renders as a high-contrast QR code.
url="https://ui.welkdock.com"Longer URLs produce denser codes. Keep the code large and unobstructed when displaying it.
url="https://example.com/mission/briefing?team=welkui"URLs without an HTTP or HTTPS scheme show an accessible error.
Enter a valid URL beginning with http:// or https://.
url="welkdock.com"Add a heading, supporting copy and themed card background around the framed code.
Scan to explore the component library.
variant="card" title="Visit WelkUI" subtitle="Scan to explore." cardColor="#ffda57"Set originalCode to render traditional square modules with the same encoded URL.
originalCodeRequired props are marked in the default column. Other props are optional. ReactNode accepts text or JSX.
| Prop | Type | Default | Description |
|---|---|---|---|
url | string | Required | Absolute HTTP or HTTPS URL to encode. |
variant | "default" | "card" | "default" | Use the original QR frame or present it inside a themed card. |
title | string | Unset | Optional heading in the card variant. |
subtitle | string | Unset | Optional supporting text in the card variant. |
cardColor | CSSProperties["backgroundColor"] | Theme paper | Optional CSS background color for the card variant. |
originalCode | boolean | false | Use traditional square QR modules instead of comic rounded modules. Finder and timing patterns remain square in both modes. |
This component supports the props listed above, not arbitrary native HTML attributes.
Import @welkui/react/styles.css once in your app entry or Next.js root layout. The previews use the default theme; override --welk-* CSS tokens in your app to customize it.
For Next.js, put hooks and event handlers in a component beginning with "use client". Keep state local to the component using the control. The library preserves its client boundaries and uses your installed React version.
Use defaultValue or defaultChecked for uncontrolled fields, or a state value and its change callback for controlled fields. Do not switch between these modes during the lifetime of a field.
Modal and notification examples start closed: use their Try buttons to see them. Disabled examples are deliberately non-interactive. Validate forms, uploads, authentication, and server responses in your application; these components only provide UI.