Blog Card Four
Cover image on top, with a white panel overlapping the bottom edge. Great for article teasers.
Examples
Default (attached panel)
Flush layout
Installation
npx shadcn-extras@latest add blog-card-four
Props
Prop | Type | Default | Description |
---|---|---|---|
href | string | — | Optional link for the whole card. |
image | { src: string; alt?: string } | — | Cover image (top). |
title | string | — | Title text. |
excerpt | string | — | Optional description. |
author | { name: string; avatar?: string; href?: string } | — | Author block in footer. |
dateISO / dateLabel | string | — | Formatted date display & machine date. |
variant | 'attached' | 'flush' | 'attached' | Whether the panel overlaps the image. |
*ClassName props | string | — | Slot overrides for image/panel/title/excerpt/footer. |