Blog Card Two

A full‑bleed image card with a soft gradient overlay. Title + meta pinned to the bottom; action buttons on the right.

Examples

Default (bottom gradient)

Center fade overlay

Installation

npx shadcn-extras@latest add blog-card-two

Props

PropTypeDefaultDescription
hrefstringLink for the whole card.
image{ src: string; alt?: string }Cover image.
titlestringCard title (used for aria-label when href present).
meta{ category?: string; categoryHref?: string; timeLabel?: string }Bottom meta row.
onLike() => voidLike click handler.
onBookmark() => voidBookmark click handler.
variant'bottom-gradient' | 'center-fade''bottom-gradient'Overlay style.
roundedstring'rounded-2xl'Tailwind radius class on the card.
overlayClassNamestringExtra classes on overlay layer.
titleClassName / metaClassName / actionClassNamestringSlot overrides.