Blog Card
A story from the road: its landscape, a title in the voice, who and when.
Preview
Usage
tsx
import { BlogCard } from "zostel-ui";
<BlogCard
title="Fly off Billing. Land in Bir."
excerpt="A weekend of take-offs, from the ridge to the landing field."
imageUrl="/brand/scenes/valleys.svg"
author="Zostel"
date="October"
tags={["fly", "land", "laugh"]}
href="/stories/bir"
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | Two lines at most. |
excerpt | string | — | Three lines at most. |
imageUrl | string | — | A cover: a photo of the stay, or its landscape (/brand/scenes/<family>.svg). Never stock photos. |
author / date | string | — | Who and when. |
tags | string[] | [] | Verbs work best. |
href | string | — | Makes the card a link. |
className | string | — | More classes, merged with the component’s own (tailwind-merge). |
titleType:
stringDefault: —
Two lines at most.
excerptType:
stringDefault: —
Three lines at most.
imageUrlType:
stringDefault: —
A cover: a photo of the stay, or its landscape (/brand/scenes/<family>.svg). Never stock photos.
author / dateType:
stringDefault: —
Who and when.
tagsType:
string[]Default:
[]Verbs work best.
hrefType:
stringDefault: —
Makes the card a link.
classNameType:
stringDefault: —
More classes, merged with the component’s own (tailwind-merge).