Skip to content

SiActionCardComponent documentation

selector
button[si-action-card]

An action card component that extends the base card component with option to either select the whole card or trigger an action.

Usage: as selectable card: <​button si-card selectable type="button" [(selected)]="isSelected"​>...<​/button​>

or as an action card: <​button si-card type="button" (click)="doSomeAction()"​>...<​/button​>

Input Properties

NameTypeDefaultDescription
heading
TranslatableStringCard header text.
imgAlt
TranslatableStringAlt text for a provided image.
imgDir
(undefined | "horizontal" | "vertical")'vertical'Defines if an image is placed on top or start (left) of the card.
imgObjectFit
(undefined | "fill" | "none" | "contain" | "cover" | "scale-down")'scale-down'Sets the image object-fit CSS property.
imgObjectPosition
stringSets the image object-position CSS property.
imgSrc
stringImage source for the card.
selectable
booleanfalseMakes whole card selectable.
selected
booleanfalseIndicates if the card is selected. Ignored when selectable is not set to true .
subHeading
TranslatableStringCard secondary header text.

Output Properties

NameTypeDescription
selectedChange
booleanIndicates if the card is selected. Ignored when selectable is not set to true .

Types Documentation

Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality.
Translatable
import

Except where otherwise noted, content on this site is licensed under MIT License.