AstroAnimate Docs — Installation, Components & API

ArticleCard NEW

Article/blog card with image preview, hover lift effect, and CTA link.

Preview/Playground

Created by
Creator
Prashanth
AstroAstro
---
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

PropTypeDefaultDescription
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