ICONYZ
English
Switch icon from Radix Icons

Switch icon

radix-icons:switch

The Switch icon (radix-icons:switch) is a free SVG icon from the Radix Icons set by WorkOS. It is drawn on a 15 × 15 grid. Radix Icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Radix Icons
Author
WorkOS
License
MIT
Size
15 × 15
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><path fill="currentColor" d="M10.731 3.006q.225.01.442.044l.085.014q.172.03.34.07l.027.008q.063.016.126.035l.062.017l.09.03q.166.053.325.12l.102.045l.09.04q.066.031.128.064l.06.031l.085.047q.152.086.297.18l.07.049a5 5 0 0 1 .5.402a4 4 0 0 1 .383.402l.052.062a4 4 0 0 1 .253.345l.07.11l.045.071l.047.081a5 5 0 0 1 .116.217l.042.085q.023.048.043.096l.048.111l.02.05a5 5 0 0 1 .094.256l.032.099l.027.096l.03.106q.04.165.07.337q.01.051.018.104a4.5 4.5 0 0 1-.089 1.78l-.025.093l-.031.11l-.016.05l-.059.17q-.014.042-.032.084l-.039.1l-.04.097l-.05.11l-.043.085l-.058.114l-.037.065q-.033.06-.068.119l-.045.07q-.034.057-.07.111l-.052.075l-.062.09a5 5 0 0 1-.139.18l-.052.062q-.04.05-.084.098l-.053.058q-.049.053-.099.104l-.048.047a4 4 0 0 1-.17.16l-.073.063l-.089.075l-.065.05a5 5 0 0 1-.202.15l-.07.047l-.118.076l-.055.034q-.06.037-.124.07q-.042.025-.085.048l-.06.032l-.127.062l-.09.041l-.102.045a5 5 0 0 1-.326.12l-.09.03l-.062.017a5 5 0 0 1-.493.113l-.085.014a5 5 0 0 1-.442.045L10.5 12h-6l-.231-.006a4.5 4.5 0 0 1 0-8.988L4.5 3h6zM4.5 4a3.5 3.5 0 1 0 0 7h3.173A4.49 4.49 0 0 1 6 7.5A4.49 4.49 0 0 1 7.673 4zm6 0a3.5 3.5 0 1 0 0 7a3.5 3.5 0 0 0 0-7"/></svg>

How to use the Switch icon

React

import { Icon } from "@iconify/react";

<Icon icon="radix-icons:switch" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="radix-icons:switch" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="radix-icons:switch" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[radix-icons--switch]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/radix-icons -->
<div class="i-radix-icons:switch"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="radix-icons:switch"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/radix-icons/switch.svg" alt="Switch icon" width="24" height="24">

Switch icon in other icon sets

Switch icon FAQ

Is the Switch icon free for commercial use?

Yes. Radix Icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Switch icon in React?

Install @iconify/react and render <Icon icon="radix-icons:switch" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Switch icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/radix-icons/switch.svg" alt="Switch icon">, or paste the SVG code inline to style it with CSS.

Browse all Radix Icons →