Introduction | svelte-wordcloud Skip to content

svelte-wordcloud

A composable word cloud component library for Svelte.

3D depth layers

Words are arranged across depth layers. Navigate with Ctrl + Wheel, pinch-to-zoom, or a built-in scrollbar.

Mobile-friendly

Pinch-to-zoom and single-finger pan work out of the box on touch devices.

Accessible

Canvas gets role="img" and aria-labelledby. Built-in ARIA slider, visually-hidden word list, and text-to-speech reader included.

Flexible styling

Control colors, spacing, and layout via CSS custom properties. No configuration object — just CSS.

svelte-wordcloud stands on the shoulders of two wonderful open-source projects. A heartfelt thank you to the authors and contributors of Threlte and troika-three-text — this library would not exist without your work.