?

CtaCard

Image card with hover overlay for call-to-action links.

componentcta
Edit on GitHub

Overview

The CtaCard component renders an image with a dark overlay that appears on hover or focus, showing a title, optional description, and arrow icon. Use it for visually prominent call-to-action links.

Props

PropTypeDefaultDescription
srcstringImage path (relative to article or absolute URL)
titlestringOverlay heading text
hrefstringLink destination
descriptionstringOptional overlay subtext
categorystringAuto-injected by MDX component map
slugstringAuto-injected by MDX component map

Usage

<CtaCard
  src="preview.png"
  title="See the live demo"
  href="https://demo.example.com"
  description="Try it out in your browser."
/>

Notes

This component is not available in AI-generated articles. It requires manually curated images.