Card 3.1
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Getting started
UI
W.Feature
Widget
The Card component provides a versatile container for displaying related content. It uses semantic HTML and ensures proper heading structure and content organization.
---
import { Card4, ItemGrid0 } from '@yatoday/astro-ui/astro';
---
<ItemGrid0 columns={3} class="bg-stripe">
<Card4
icon="tabler:home"
title="Card 3.1"
description="Lorem ipsum dolor sit amet, consectetur adipisicing elit."
callToAction={{ href: '/', text: 'Read more', size: 'sm', variant: 'primary' }}
>
Content
</Card4>
<Card4
icon="tabler:home"
title="Card 3.2"
description="Lorem ipsum dolor sit amet, consectetur adipisicing elit."
callToAction={{ href: '/', text: 'Read more', size: 'sm', variant: 'outline' }}
/>
<Card4
icon="tabler:home"
title="Card 3.3"
description="Lorem ipsum dolor sit amet, consectetur adipisicing elit."
classes={{
icon: 'text-primary'
}}
/>
</ItemGrid0>
Prop | Type | Default | Description |
---|---|---|---|
title | string | - | Title text for the card |
icon | string | - | - |
callToAction | ToAction | string | ToAction[] | string[] | - | Action button or link. See the ToAction for details. |
as | string | article | HTML tag name for the wrapper |
asHeader | string | h3 | HTML tag name for the title |
classes.container | string | bg-transparent border-transparent | Additional CSS classes to apply to the card wrapper |
classes.title | string | - | Additional CSS classes to apply to the title |
classes.description | string | text-muted-foreground | Additional CSS classes to apply to the description |
classes.icon | string | - | Additional CSS classes to apply to the icon |
classes.action | string | - | - |