Zustände
Bestätigungscode leer, teilweise, Fehler, Erfolg, maskiert und deaktiviert.
Bestätigungscode
Bestätigungscode
Bestätigungscode
Bestätigungscode
PIN
Bestätigungscode
Formulare
Verification code with one cell per character (Figma: OTP Input), form-associated <tc-otp-input>. Typing advances, Backspace goes back, pasting fills all cells, autocomplete="one-time-code" lets phones insert SMS codes. The joined code is submitted under name; a complete code fires tc-complete.
Bestätigungscode leer, teilweise, Fehler, Erfolg, maskiert und deaktiviert.
Zellen in SM, MD und LG sowie ein alphanumerischer Code.
feuert, sobald alle Zellen gefüllt sind (z. B. zum automatischen Absenden).
Status: wartet
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
label | '' | – | Visible label text. |
required | False | – | Mark as required: native required attribute plus a red asterisk. |
optional | False | – | Show the "optional" marker after the label (ignored when required). |
label_icon | '' | – | Explanation shown as a help icon with tooltip after the label. |
hide_label | False | – | Keep the label for assistive technology only. |
help | '' | – | Hint below the control (Figma: Hint / Help Text). |
error | '' | – | Error message or list of messages (e.g. Django field.errors); sets the error state, aria-invalid and aria-describedby. Replaces the hint while shown. |
state | '' | Validation state without an error message: success or warning colour the border and the hint. | |
name | '' | – | Form field name (Django html_name). |
value | 'None' | – | Current value; dates and numbers are converted to their ISO/text form. |
disabled | False | – | Disable the control. |
readonly | False | – | Read-only: value stays selectable and is submitted. |
size | 'md' | Height: sm 28, md 36, lg 44 px (match the buttons in the same row). | |
length | 6 | – | Number of cells. |
separator | True | – | Show a dash in the middle (Figma: Show Separator). |
masked | False | – | Hide the characters like a password. |
numeric | True | – | Digits only (numeric keyboard); False also accepts letters. |
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.