Whether to animate words in with a staggered fade.
How colors are assigned to words.
brand: all words use --mj-brand-primary with opacity based on weight.categorical: distinct colors from a fixed palette, assigned by Category.weight-gradient: interpolates from muted to brand-primary based on weight.Whether words are clickable / hoverable.
Emitted when a word is clicked.
Emitted when the pointer enters a word.
Emitted when the pointer leaves a word.
Data items to display in the cloud.
Layout algorithm used for word placement.
Positioned items ready for rendering.
Maximum font size in pixels for the highest-weighted item.
Maximum number of items to display (heaviest are kept).
Minimum font size in pixels for the lowest-weighted item.
SVG viewBox attribute value.
A callback method that is invoked immediately after the default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.
A reusable, SVG-based word cloud component.
Renders weighted text items in a spiral or rectangular layout with collision detection. Supports multiple color modes using MJ design tokens, optional entry animation, and click/hover interaction.
Example