Skip to content
Calm motion: animations on this site only fade, with no movement

Article header ​

The title, the author, the date, the reading time, and the topic of an article

The top of a news story, a blog post, or a guide. Put the text of the article under it, for example in the markdown component.

Basic

Home recording

Your wardrobe is the best vocal booth you already own

Soft things stop echo. Before you buy foam, try the room that is full of clothes.

  • title is the title. level sets its heading level (default 1). Use 1 on the page of the article.
  • topic shows above the title. With topicHref, it is a link.
  • summary is one or two lines under the title.
  • author has a name, and an optional avatar and href.
  • date and updated are days as YYYY-MM-DD. They show in time elements, so search engines and tools can read them. minutes shows the reading time.
  • locale sets the format of the dates. Change the words with labels or a label pack: the functions by, read, and updated.

Usage ​

ts
import { BlessArticleHeader } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
title*string—
topicstring—the topic above the title, for example "Gear"
topicHrefstring—
summarystring—one or two lines under the title
author{ name: string; avatar?: string | undefined; href?: string | undefined; }—
datestring—YYYY-MM-DD
updatedstring—YYYY-MM-DD of the last change
minutesnumber—minutes to read
level1 | 2 | 31the heading level of the title
localestring"en"
labelsPartial<{ by: (name: string) => string; read: (minutes: number) => string; updated: (date: string) => string; }>—

Released under the MIT License. Character names and artwork belong to their owners.