Components
BaseLinkCard
A card that leads somewhere: icon, title, description and an action button.
components/ui/BaseLinkCard.vue
View in the demo
Example
API
Props
Name | Type | Default | Description |
|---|---|---|---|
titlerequired | string | — | The title. |
action-textrequired | string | — | The text of the button. |
description | string | — | A sentence under the title. |
icon | string | — | An icon tile above the title. |
color | string | "primary" | The colour of the icon tile. |
to | string | — | An internal route. |
href | string | — | An external link. |
title-tag | string | "h2" | The heading element; match the outline of your page. |
Accessibility
The button also contains the title for screen readers, so “Open” is announced as “Open: Monthly report”.