Skip to content

Text Magnetic Poetry

Pro

Words are fridge-magnet tiles that people drag to write their own line. Each tile snaps and tilts a little.

  • Base UI
  • 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 Magnetic Poetry 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
31
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 words; read the line with onValueChange.

poem-board.tsx

TextMagneticPoetry

<div>
PropTypeDefaultDescription
childrenReactNode—A string (one tile per word, and a line), or the parts.
valuereadonly string[]—The tiles on the line, in order, by their value (controlled).
defaultValuereadonly string[]EMPTY_LINEThe first line when value is not given. Default: empty.
onValueChange—Called when a drop changes the line. details.cancel puts the tile back.
disabledbooleanfalseThe tiles stay where they are: no drag, no keys, and no tab stop. Default false.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TextMagneticPoetryTiles

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

TextMagneticPoetryTile

<span>
PropTypeDefaultDescription
childrenRequiredstring—The word.
valuestring—The value of the tile in the line. Default: its word. Keep it unique on the board.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TextMagneticPoetryLine

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use onValueChange to read the line people write.
  • Use disabled to show the tiles with no drag.
Lift
hover · a held tile lifts with a deeper shadow
Drop
fade · the tile snaps into its place in the line
  1. AddedText Magnetic Poetry.
Open the release