# Toggle icon

A free toggle icon in SVG, also found under switch, on off and enable. Set the stroke weight and the corners, then copy the code or download the file.

- Name: toggle
- Category: [Layout and settings](https://icons.evanpizzolato.com/categories/layout/)
- Also found under: switch, on off, enable, setting
- Page: https://icons.evanpizzolato.com/icons/toggle/
- SVG file: https://icons.evanpizzolato.com/svg/toggle.svg
- CDN: https://cdn.jsdelivr.net/gh/evanpizzolato/quick-start-icons/src/toggle.svg
- License: MIT. Free for personal and commercial use. Attribution is not required.

## SVG

This is the file Copy gives you at the site defaults: square corners and a stroke weight of 1.25.

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="24" height="24" fill="none"
     stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="miter">
  <rect x="3" y="10" width="26" height="12" rx="6"/>
  <circle cx="22" cy="16" r="3"/>
</svg>
```

## Use it from a CDN

The CDN file is the authored source: rounded corners, a stroke weight of 2, and no width or height. An image tag draws it in black, so paste the markup inline to color it with CSS.

```html
<img src="https://cdn.jsdelivr.net/gh/evanpizzolato/quick-start-icons/src/toggle.svg" width="24" height="24" alt="">
```

## Related icons

- [filter](https://icons.evanpizzolato.com/icons/filter.md)
- [gear](https://icons.evanpizzolato.com/icons/gear.md)
- [grid](https://icons.evanpizzolato.com/icons/grid.md)
- [grip](https://icons.evanpizzolato.com/icons/grip.md)
- [home](https://icons.evanpizzolato.com/icons/home.md)
- [layers](https://icons.evanpizzolato.com/icons/layers.md)
- [list](https://icons.evanpizzolato.com/icons/list.md)
- [maximize](https://icons.evanpizzolato.com/icons/maximize.md)
