react-three-toggle

A toggle that cycles through three or more values. The one above is driving this page — click it, or focus it and press the arrow keys.

npm i react-three-toggle
uncontrolled

No value prop. It keeps its own state.

wrap = false

Stops at the last option instead of cycling back. Now: light

four values

Three is a name, not a limit. This page's type scales with it.

GitHub →