---
url: /dash-daq/booleanswitch
name: BooleanSwitch
description:
    "BooleanSwitch"
languages:
    - python
    - julia
    - r
---

# ![](/assets/images/language_icons/f-sharp_50px.svg) Boolean Switch Examples and Reference

------------------------

### Default Boolean Switch

------------------------

An example of a default boolean switch without any extra properties.

{{example boolean_switch}}

------------------------

### Color

Set the color of the boolean switch with `color=#<hex_value>`.

{{example boolean_switch_color}}

------------------------

### Label

Set the label and label position using the `label` and `labelPosition`
properties.

{{example boolean_switch_label}}

------------------------

### Vertical Switch

Create a vertical oriented switch by setting `vertical=`.

{{example boolean_switch_vertical}}

------------------------

### Disabled Switch
To disable the Boolean Switch set the property `disabled` to ``.

{{example boolean_switch_disabled}}

------------------------

{{reference dash_daq.BooleanSwitch}}