The value is the text in the code: a link or any text. Give a value that is not an http(s) link a label, because the default name does not read it aloud.
share-project.tsx
QrCode
<figure>| Prop | Type | Default | Description |
|---|---|---|---|
| aria-label | string | — | Defines a string value that labels the current element. The accessible name. Default "QR code", or "QR code: <value>" for an http(s) link: other payloads are noise read aloud, and some hold secrets (a Wi-Fi password, an otpauth:// key). |
| value | string | — | The text in the code: a link, a Wi-Fi payload (wifiPayload in #/lib/qr-payload), any text. |
| pixel | number | 160 | The outer width in px, quiet zone included. Default 160. |
| level | "H""L""M""Q" | — | The error correction level: L 7%, M 15% (default), Q 25%, H 30% of the code can be lost. A logo always sets H. |
| module | "dots""rounded""square" | "square" | The shape of the data modules. Default square. |
| finder | "circle""rounded""square" | "square" | The shape of the three finder patterns. Default square. |
| plate | boolean | true | The light plate under the code. Default true. |
| status | "empty""error""loading""ready" | "ready" | The load state. Default ready. loading: the skeleton while the value is not known yet. empty: the empty box. error shows as ready: the error box is for a value the code cannot hold. |
| animate | boolean | false | Sweeps the modules in when the code mounts in the browser. Default false. |
| labels | Partial<CodeSymbolLabels> | — | The texts of the empty and error states. |
| on | — | Runs when etiket cannot encode the value, with the kind and the message. | |
| ...props | <figure> attributes | — | Every other attribute goes to the <figure>, with a ref. |
QrCodeImage
<div>QrCodeLogo
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
QrCodeCaption
<figcaption>| Prop | Type | Default | Description |
|---|---|---|---|
| copy | boolean | — | The Copy Button after the value. Default true when there are no children. |
| ...props | <figcaption> attributes | — | Every other attribute goes to the <figcaption>, with a ref. |
Built with
Installs with QR Code
- Components
- Copy Button





