# ToggleComponent

Switches one setting on or off.

```java
add(new ToggleComponent(at(new Box("coords", 10, 10, 160, 12)), "Show coordinates",
        config.showCoords, on -> config.showCoords = on));
```

## Variants

- States

Page: https://minuit.dryaides.com/components/toggle.html
