observable-framework-input-toggle
Installation
SKILL.md
Input: Toggle
Observable Framework documentation: Input: Toggle Source: https://observablehq.com/framework/input-toggle
API · Source · The toggle input allows the user to choose one of two values, representing on or off. It is a specialized form of the checkbox input.
The initial value of a toggle defaults to false. You can override this by specifying the value option.
const mute = view(Inputs.toggle({label: "Mute", value: true}));
mute
The on and off values of a toggle can be changed with the values option which defaults to [true, false].