```html:preview
```
:::tip
There are multiple components for dealing with boolean yes / no.
* [ButtonToggle](../et2-button-toggle): This one
* [Checkbox](../et2-checkbox): Classic checkbox
* [Switch](../et2-switch): Switch to turn something on or off
* [SwitchIcon](../et2-switch-icon): Switch between two icons
:::
## Examples
### Variants
Use the variant attribute to set the button’s variant, same as regular buttons
```html:preview
```
### Color
Buttons are designed to have a uniform appearance, so their color is not inherited. However, you can still customize
them by setting `--indicator-color`.
```html:preview
```
### Custom icon
Use the `icon` property to set the icon used
```html:preview
```
### Custom icons
Use the `onIcon` and `offIcon` properties to customise what is displayed
```html:preview
```