Skip to content

Text Mosaic

Pro

The letters are made of many small photos that shuffle and sort into place.

  • React 19
  • Tailwind CSS 4

Added Nov 15, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Text Mosaic needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
34
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Give the photos, then the word in the Content part.

team-heading.tsx

TextMosaic

<span>
PropTypeDefaultDescription
childrenReactNode—A string, or the parts TextMosaicContent and TextMosaicCanvas.
photosRequiredreadonly string[]—The photo URLs the tiles show, in any number (8 to 16 read best). The item ships no photos: pass your own. A photo that fails to load is left out; with none the text stays plain.
localestring—The BCP 47 locale of the text, for the case of text-transform on the canvas. Default: the DisplayLocaleProvider locale, else "en-US".
trigger"hover""mount""view""view"When the tiles sort in: view (default) once, the first time it shows; mount once, at once; hover while a pointer is over it or keyboard focus is on it (or the link around it), and back to the plain text when it leaves.
builtboolean—True builds the mosaic, false goes back to the plain text, on top of the trigger.
onSettled—Called when the tiles rest in the letters, or the text is plain again.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TextMosaicContent

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TextMosaicCanvas

<canvas>
PropTypeDefaultDescription
...props<canvas> attributes—Every other attribute goes to the <canvas>, with a ref.
  • Pass 12 or more square photos in photos.
  • Use trigger="hover" to build on the pointer.
  1. AddedText Mosaic.
Open the release