Typen
Inline-Wert, Feld für Schlüssel und reiner Icon Button
Daten
Technical value with copy to clipboard (navigator.clipboard). Inline = mono value + icon, field = value in a bordered field with an icon button (API keys), icon = icon button only (tooltip). Feedback for 2 s: "Copied", or "Error" without clipboard permission; announced via aria-live. Method copy(); events tc-copy / tc-error.
Inline-Wert, Feld für Schlüssel und reiner Icon Button
technische Werte direkt kopieren
<tc-copy-value> direkt im Markup; copy() und Event tc-copy mit dem kopierten Text.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
value | '' | – | Text that is shown and copied. |
type | 'inline' | Inline, field or icon only. | |
copy_text | '' | – | Copy this text instead of the shown value (e.g. a full token). |
label | '' | – | Accessible name / tooltip of the copy button; defaults to "Copy". |
mono | True | – | Mono value. |
disabled | False | – | Disable copying. |
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.