Clickable Card
@astryxdesign/core v0.7.1 · ClickableCard
Props
| Name | Type | Default | Description |
|---|---|---|---|
label | string | - | Accessible name of the hidden control. |
href | string | - | Address the card navigates to. Leave it unset to handle click instead. |
target | string | - | Browsing context for href. _blank opens a new tab. |
isDisabled | boolean | false | The card ignores activation. |
variant | CardVariant | 'default' | Background variant, forwarded to Card. |
elevation | CardElevation | 'none' | Resting shadow: none, low, med, or high. |
padding | SpacingStep | - | Padding forwarded to Card. |
width | number | string | - | Width. Numbers are pixels. |
height | number | string | - | Height. Numbers are pixels. |
maxWidth | number | string | - | Maximum width. |
Events
| Name | Payload | Description |
|---|---|---|
click | MouseEvent | The surface was activated. Nested controls do not emit it. |
Slots
The default slot is the card body.