Carregando…
Carregando…
Carregando…Word cloud with size weight scaling and optional random rotation.
$ npx kikitocn add tag-cloudimport { TagCloud } from "@/components/ui/cn/tag-cloud/TagCloud";
export function TagCloudExample() {
return (
<TagCloud />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
items* | TagCloudItem[] | — | Array de { label, weight, intent?, href? } |
minSize | number | 12 | Tamanho mínimo de fonte em px |
maxSize | number | 28 | Tamanho máximo de fonte em px |
randomRotate | boolean | false | Rotação aleatória nas tags |
onClick | (item: TagCloudItem) => void | — | Callback ao clicar em uma tag |
className | string | — | Classes CSS extras |
style | React.CSSProperties | — | Estilos inline extras |
Weight-scaled tags with intents
Rotated (randomized angles)
Clickable (onClick)
Clicked: none