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

title
Type: string
Default:

Blog post title

excerpt
Type: string
Default:

Short excerpt or summary text

image
Type: string
Default:

Featured image URL

author
Type: { name: string; avatar?: string }
Default:

Author information

date
Type: string
Default:

Publication date

tags
Type: string[]
Default:

Array of tag labels

readTime
Type: string
Default:

Estimated reading time

category
Type: string
Default:

Blog category badge label