Slotted card
Simple Card
Preview
{% slotted_card "Welcome Card" %}
{% slot "body" %}This is a basic card body with clean layout.{% endslot %}
{% endslotted_card %}
Parameters
| Name | Type | Requirement | Default | Choices | Description |
|---|---|---|---|---|---|
title
|
str
|
Optional | — | — | Optional card title displayed above the body. |
variant
|
str
|
Required |
default
|
default
elevated
outlined
|
Visual variant of the card. |
Slots
| Name | Requirement | Default | Description |
|---|---|---|---|
body
|
Required | — | Main card content. |
header
|
Optional | — | Optional header area above the title. |
footer
|
Optional | — | Optional footer area below the body. |
Select variant preset
Background colour
Viewport width
Zoom level
{% slotted_card "Welcome Card" %}
{% slot "body" %}This is a basic card body with clean layout.{% endslot %}
{% endslotted_card %}
<div class='slotted-card default'><h3 class='slotted-card__title'>Welcome Card</h3><div class='slotted-card__body'>This is a basic card body with clean layout.</div></div>