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
- Each tag has a
weight, for example a count. The text size runs frommintomaxrem (default 0.75 to 2) in a straight line between the smallest and the largest weight. - A tag with
hrefis a link, and goes through your router when one is set. A tag withouthrefis a button, andselectfires with the tag. sortisnone(your order),weight(biggest first), orlabel.- 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
| Name | Type | Default | Description |
|---|---|---|---|
tags* | BlessCloudTag[] | — | |
min | number | 0.75 | smallest and largest text size, in rem |
max | number | 2 | |
sort | "label" | "none" | "weight" | "none" | `weight` puts the biggest first. `none` keeps your order. |
label | string | "Tags" | names the list for screen readers |
Events
| Name | Payload | Description |
|---|---|---|
select | [tag: BlessCloudTag] |