Typen
QR-Code allein oder als Karte mit Wert und Download
Daten
Generated QR code with quiet zone: always dark modules on white, also in dark mode, and the value repeated as text. Card adds the value and a download action. Needs the optional qrcode extra (tomcom-tcf[qrcode]); without it a placeholder is shown. Raw <tc-qr-code> HTML takes the SVG as child.
QR-Code allein oder als Karte mit Wert und Download
kleiner QR-Code zum Einrichten auf dem Smartphone
Mit der WireGuard-App scannen
Der Code enthält den privaten Schlüssel und wird nur einmal angezeigt.
<tc-qr-code> direkt im Markup; ohne SVG-Kind zeigt es den Platzhalter (QR-Codes erzeugt der Server).
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
value | '' | – | Encoded text, e.g. "https://example.com/c/8F3K2". |
type | 'code' | Code only or card with value and download. | |
label | '' | – | Accessible name; defaults to "QR code". |
size | 165 | – | Edge length in px. |
download_url | '' | – | Card: URL of a downloadable image (e.g. PNG view). |
download_label | '' | – | Card: download button text; defaults to "Download PNG". |
Zusätzliche Attribute (z. B. class, aria-*, data-*) und HTMX-Kurzformen (get, post, get_url, post_url, target, swap, trigger, confirm) werden an das Element „root“ durchgereicht.