YuhuanStudioYunUIDocs
Patterns

Blog Card

A blog post preview card with cover image, category, meta row, and tags.

A blog post preview card with a cover image, category badge, meta row (date, reading time, author), and tag chips. It links to the post via the injected Link adapter, and offers a featured variant that spans two columns on md+ grids.

Import

import { BlogCard } from "@yuhuanowo/yunui/patterns";

Example

BlogCard

Designing with YunUI patterns
Engineering

Designing with YunUI patterns

How prop-driven compositions keep your product UI consistent.

Jan 15, 20266 min readYuhuan

Props

PropTypeDefaultDescription
author{ name?: string; avatar?: string; url?: string | undefined; } | undefinedPost author (name shown in the meta row).
categorystringCategory label shown as an info badge.
coverImagestringCover image URL; a placeholder icon is shown when absent.
datestringPublish date (ISO string); formatted via `locale`.
descriptionstringShort excerpt/summary.
localestringLocale for the date; defaults to a stable "en-US" (SSR-safe).
readingTimenumberEstimated reading time in minutes.
tagsstring[]Tag list (first 3 rendered as clickable chips).
title*stringPost title.
url*stringDestination the card links to.
variant"default" | "featured"defaultLayout: `default` or `featured` (spans 2 columns on `md`+).

On this page