demo Help Center

CtaCard

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

componentcta

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
srcstring—Image path (relative to article or absolute URL)
titlestring—Overlay heading text
hrefstring—Link destination
descriptionstring—Optional overlay subtext
categorystring—Auto-injected by MDX component map
slugstring—Auto-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.