AstroAnimate Docs — Installation, Components & API

ArrowCTAButton NEW

Button/link with animated underline and sliding arrow hover effect.

Preview/Playground

Created by
Creator
Prashanth
AstroAstro
---
import ArrowCTAButton from "@astroanimate/core/ArrowCTAButton";
---

<ArrowCTAButton label="Explore" />

Installation

bash
npm install @astroanimate/core

Usage

---
import ArrowCTAButton from "@astroanimate/core/ArrowCTAButton";
---

<ArrowCTAButton />

Renders the ArrowCTAButton component with AstroAnimate defaults.

Props

PropTypeDefaultDescription
as"button" | "a""button"Element type
hrefstring-Required if as="a"
labelstring-Button text
type"button" | "submit" | "reset""button"Button type
classstring""Additional CSS classes

Use When

  • Text-based CTA links
  • Minimal landing page actions
  • Inline navigation with subtle hover feedback

Avoid When

  • Large button layouts required
  • Complex interaction states needed

Accessibility

  • Supports :focus-visible
  • Uses aria-label
  • Decorative SVG arrow uses aria-hidden="true"
  • Respects prefers-reduced-motion

Performance

  • CSS-only hover animations
  • No JavaScript required

Credits