Toggle

A two-state button that can be either on or off.

Source code

Click here to see the source code for this component on GitHub. Feel free to copy it and adjust it for your own use.

Installation

npx ui-thing@latest add toggle

Usage

Basic example