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

Trend list ​

Topics that people talk about now, with the count of posts

Shows what is popular, in the side column of a social app or a news site. For people with scores, use the leaderboard.

Basic
  • trends is a list in order of rank. Each trend has an id and a topic. It can also have a category, the number of posts, and an href.
  • The list is an ordered list, so screen readers hear the rank. The big number is only for the eye.
  • With href, the topic is a link. The count shows in short form, such as "15.3K posts", in the locale.
  • Change the words with labels or a label pack: title and posts (a function).

Usage ​

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

API ​

Props

NameTypeDefaultDescription
trends*BlessTrend[]—
localestring"en"
labelsPartial<{ title: string; posts: (count: string) => string; }>—

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