Speichern-Button
Submit-Button mit übersetzbarem Standardtext, eigenem Text, Ladezustand und Größen.
Formulare
Primary submit button with the translated default label "Save".
Submit-Button mit übersetzbarem Standardtext, eigenem Text, Ladezustand und Größen.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
variant | 'primary' | Visual hierarchy. | |
size | 'md' | Height: sm 28, md 36, lg 44 px. | |
icon | '' | – | Leading Carbon icon. |
icon_right | '' | – | Trailing Carbon icon. |
label | '' | – | Button text (default "Save"). |
block | False | – | Stretch to the container width. |
href | '' | – | Render a link with button styling instead of a <button>. |
type | 'submit' | Native button type. | |
disabled | False | – | Disable the button. |
loading | False | – | Show a spinner and block clicks. |
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.