☁️ React Wordcloud
Edit page
HomeReadmeProps
Usage
BasicSizeResponsive parent sizeExplicit size valuesMinimum sizeCallbacksTransitionsOptionsOptimizations
FAQChangelog

Size

By default, react-wordcloud will inherit the parent's size unless an explicit size prop is specified.

Responsive parent size

This is the default behavior. You can resize the Playground container to watch the wordcloud update when parent size changes.

Explicit size values

Provide explicit values with the size prop. The wordcloud will no longer respond to resizing.

Minimum size

You can customize the minimum size by adjusting the minSize prop. If the provided size or resized values are smaller than minSize, it will use the minSize value, as demonstrated in the following example (minSize = [400, 400], size = [100, 100]).