Button
Primary Button
Preview
{% button "Click Me" variant="primary" %}
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 primary" >
Click Me
</button>