---
url: /dash-daq/toggleswitch
name: ToggleSwitch
description:
    "ToggleSwitch"
languages:
    - python
    - julia
---

# ![](/assets/images/language_icons/julia_50px.svg) Toggle Switch Examples and Reference

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

### Default Toggle Switch

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

{{example toggle-switch}}

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

### Vertical orientation

Make the switch display vertically by setting `vertical=true`.

{{example toggle-switch_vertical}}

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

### Size

Adjust the size of the toggle switch with `size`.

{{example toggle-switch_size}}

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

### Label

Add a label to the toggle switch and specify its position using `label` and `labelPosition`.

{{example toggle-switch_label}}

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

{{reference dash_daq.ToggleSwitch}}