Skip to content

Clickable Card

@astryxdesign/core v0.7.1 · ClickableCard

Props ​

NameTypeDefaultDescription
labelstring-Accessible name of the hidden control.
hrefstring-Address the card navigates to. Leave it unset to handle click instead.
targetstring-Browsing context for href. _blank opens a new tab.
isDisabledbooleanfalseThe card ignores activation.
variantCardVariant'default'Background variant, forwarded to Card.
elevationCardElevation'none'Resting shadow: none, low, med, or high.
paddingSpacingStep-Padding forwarded to Card.
widthnumber | string-Width. Numbers are pixels.
heightnumber | string-Height. Numbers are pixels.
maxWidthnumber | string-Maximum width.

Events ​

NamePayloadDescription
clickMouseEventThe surface was activated. Nested controls do not emit it.

Slots ​

The default slot is the card body.