Learn how to create reusable, accessible, and performance-first UI components in Astro using modern CSS architecture, component composition, and scalable design patterns for production-ready applications.
Find out moreArticleCard NEW
Article/blog card with image preview, hover lift effect, and CTA link.
Preview/Playground
Created by
Prashanth
Building Scalable Design Systems with Astro
---
import ArticleCard from "@astroanimate/core/ArticleCard";
---
<ArticleCard
title="UI Animation Patterns"
description="Interaction ideas for modern interfaces."
image="/images/article-cover.jpg"
href="/blog/ui-animation"
/>
<ArticleCard
title="Building Scalable Design Systems with Astro"
description="Learn how to create reusable, accessible, and performance-first UI components in Astro."
href="/blog/design-systems"
/> Installation
bash
npm install @astroanimate/core Usage
---
import ArticleCard from "@astroanimate/core/ArticleCard";
---
<ArticleCard /> Renders the ArticleCard component with AstroAnimate defaults.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | - | Article title |
description | string | - | Article description |
href | string | "#" | Article link |
image | string | - | Article image URL |
actionLabel | string | "Find out more" | CTA text |
class | string | "" | Additional CSS classes |
Use When
- Blog or article listing sections
- Documentation/resource cards
- Content-focused landing pages
Avoid When
- Complex article metadata layouts needed
- Dynamic masonry/grid systems required
Accessibility
- Supports
:focus-visible - Decorative arrow uses
aria-hidden="true" - Image uses empty
alt=""attribute - Respects
prefers-reduced-motion
Performance
- Uses native
loading="lazy"for images - No JavaScript required
Credits
- Credit to @Prashanth
