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

TagCloud ​

Tags sized by weight

A group of tags where the more important ones are bigger. Use it to show what a collection is about and to let people jump to one topic. For a list that people compare, use a sorted list or a Chart.

Basic
picked: —
  • Each tag has a weight, for example a count. The text size runs from min to max rem (default 0.75 to 2) in a straight line between the smallest and the largest weight.
  • A tag with href is a link, and goes through your router when one is set. A tag without href is a button, and select fires with the tag.
  • sort is none (your order), weight (biggest first), or label.
  • The size is a visual hint only. The tags are a labelled list (label) in the order that you chose. A screen reader hears all tags at the same level.

Usage ​

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

API ​

Props

NameTypeDefaultDescription
tags*BlessCloudTag[]—
minnumber0.75smallest and largest text size, in rem
maxnumber2
sort"label" | "none" | "weight""none"`weight` puts the biggest first. `none` keeps your order.
labelstring"Tags"names the list for screen readers

Events

NamePayloadDescription
select[tag: BlessCloudTag]

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