Skip to content

Text Block Build

Free

Pixel blocks fall like a puzzle game and lock together into the shape of the word.

  • React 19
  • Tailwind CSS 4

Added Nov 15, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put the word in the Content part and the Canvas after it.

game-title.tsx

TextBlockBuild

<span>
PropTypeDefaultDescription
childrenReactNode—A string, or the parts TextBlockBuildContent and TextBlockBuildCanvas.
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 blocks drop: view (default) once, the first time it shows; mount once, at once; hover each time a pointer comes over it or keyboard focus comes to it (or the link around it); a hover that leaves mid-build takes the blocks back up.
builtboolean—True builds the word again, false takes a build back, on top of the trigger.
onSettled—Called when the blocks have faded into the crisp text, or a build was taken back.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TextBlockBuildContent

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

TextBlockBuildCanvas

<canvas>
PropTypeDefaultDescription
...props<canvas> attributes—Every other attribute goes to the <canvas>, with a ref.
  • Use trigger="mount" above the fold, and view lower on the page.
  • Use built to control when the word is built.
  1. AddedText Block Build.
Open the release