Give the words; read the line with onValueChange.
poem-board.tsx
TextMagneticPoetry
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | A string (one tile per word, and a line), or the parts. |
| value | readonly string[] | — | The tiles on the line, in order, by their value (controlled). |
| default | readonly string[] | EMPTY_LINE | The first line when value is not given. Default: empty. |
| on | — | Called when a drop changes the line. details.cancel puts the tile back. | |
| disabled | boolean | false | The 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TextMagneticPoetryTile
<span>TextMagneticPoetryLine
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |







