Pixel Select, animated React component
A dropdown that builds itself out of a grid of pixels tinted with the chosen colour, then dissolves into a falling shower of them when you pick an option.
- Pro
- Inputs & Controls
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| options | Mood[] | — | Each option has id, label and color; the pixels take the selected option's colour. Six moods by default. |
| onChange | (id: string) => void | — | Called with the option id when the user picks one. |
| autoplay | boolean | false | Opens and picks options by itself until someone interacts. |