Blog Card
A blog post preview card with featured image, title, excerpt, author info, date, and category tags.
Preview
Usage
tsx
import { BlogCard } from "zostel-ui";
<BlogCard
title="Top 10 Backpacking Destinations"
excerpt="From the misty mountains of Himachal to..."
image="/images/blog/backpacking.jpg"
author={{ name: "Zostel Team", avatar: "/avatars/zt.jpg" }}
date="Jan 15, 2025"
tags={["Backpacking", "Budget Travel", "India"]}
readTime="5 min"
category="Travel Guide"
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | Blog post title |
excerpt | string | — | Short excerpt or summary text |
image | string | — | Featured image URL |
author | { name: string; avatar?: string } | — | Author information |
date | string | — | Publication date |
tags | string[] | — | Array of tag labels |
readTime | string | — | Estimated reading time |
category | string | — | Blog category badge label |
titleType:
stringDefault: —
Blog post title
excerptType:
stringDefault: —
Short excerpt or summary text
imageType:
stringDefault: —
Featured image URL
authorType:
{ name: string; avatar?: string }Default: —
Author information
dateType:
stringDefault: —
Publication date
tagsType:
string[]Default: —
Array of tag labels
readTimeType:
stringDefault: —
Estimated reading time
categoryType:
stringDefault: —
Blog category badge label