Calm motion: animations on this site only fade, with no movement
Forum topics
Topics of a forum with replies, views, the last post, and pinned topics
The list page of a forum or a community board. To show one topic with its replies, use the thread.
Basic
- Pinned Locked Read first: the rules of this forum0 replies52.1K views
- 1.5K replies96.3K viewsLast post by Fajar, 3 h ago
- 214 replies18.4K viewsLast post by Budi Santoso, 12 min ago
- 37 replies2.3K viewsLast post by Citra Dewi, 1 h ago
- 8 replies410 viewsLast post by Ana Putri, yesterday
topicsis a list of topics. Each topic has anid, atitle, anauthor, and the number ofreplies. It can also have anhref,views, andtags.lastis the last post, with its author and time.pinned,locked, andsolvedmark the state.- Pinned topics come first and have a light tint. The rest keep their order.
- Pinned, solved, and locked each show as a mark and a word, such as "✓ Solved". Screen readers hear only the word.
- The counts show in short form, such as "1.5K replies", in the
locale. - On a narrow screen, the counts go under the title.
- Change the words with
labelsor a label pack:title,pinned,locked,solved, and the functionsby,replies,views, andlast.
Usage
ts
import { BlessForumTopics } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
topics* | BlessForumTopic[] | — | |
locale | string | "en" | |
labels | Partial<{ title: string; pinned: string; locked: string; solved: string; by: (name: string) => string; replies: (count: string) => string; views: (count: string) => string; last: (name: string, time: string) => string; }> | — |