Button
Destructive Action
Use danger buttons for actions that cannot be undone, such as deleting a record.
Preview
{% button "Delete Item" variant="danger" %}
Parameters
| Name | Type | Requirement | Default | Choices | Description |
|---|---|---|---|---|---|
label
|
str
|
Required | — | — | The button label. |
variant
|
str
|
Optional |
primary
|
primary
secondary
danger
|
Variant modifier |
disabled
|
bool
|
Optional | — | — | Renders the button as disabled. |
Select variant preset
Background colour
Viewport width
Zoom level
{% button "Click Me" variant="primary" %}
<button class="btn danger" >
Delete Item
</button>