Domino Select, animated React component
A mail list with a select-all box that topples the rows like dominoes: each row tips onto the next in a chain, then springs back up ticked. Unticking runs the chain from the bottom, and single rows toggle with a small nod.
- Pro
- Inputs & Controls
- 3D
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
7 messages
Do something with them
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| messages | DominoMessage[] | — | Rows to list; each has from, subject, time and color (avatar colour). Defaults to seven sample emails. Changing the row count resets the selection. |
| onSelectionChange | (selected: number[]) => void | — | Called with the indexes of the ticked rows whenever the selection changes; during a chain it fires once per row. |
| autoplay | boolean | false | Ticks and unticks the master box by itself until someone interacts. |