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
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.
titleis the title.levelsets its heading level (default 1). Use 1 on the page of the article.topicshows above the title. WithtopicHref, it is a link.summaryis one or two lines under the title.authorhas aname, and an optionalavatarandhref.dateandupdatedare days asYYYY-MM-DD. They show intimeelements, so search engines and tools can read them.minutesshows the reading time.localesets the format of the dates. Change the words withlabelsor a label pack: the functionsby,read, andupdated.
Usage
ts
import { BlessArticleHeader } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
title* | string | — | |
topic | string | — | the topic above the title, for example "Gear" |
topicHref | string | — | |
summary | string | — | one or two lines under the title |
author | { name: string; avatar?: string | undefined; href?: string | undefined; } | — | |
date | string | — | YYYY-MM-DD |
updated | string | — | YYYY-MM-DD of the last change |
minutes | number | — | minutes to read |
level | 1 | 2 | 3 | 1 | the heading level of the title |
locale | string | "en" | |
labels | Partial<{ by: (name: string) => string; read: (minutes: number) => string; updated: (date: string) => string; }> | — |