Skip to content
tablericons
Category
shape
Styles
Outline
Component
IconSquareToggle

shape

Square Toggle icon

Download the Square Toggle icon as free SVG or PNG. Customize its outline stroke. Copy React, Vue or Svelte code.

  • toggle
  • switch
  • swap
  • split
  • duplicate
  • clone
  • compare
  • square
  • box
Size
Stroke
Color
Download SVG

Press C to copy SVG, J for JSX, D to download.

Code

Copy it the way you use it

square-toggle.svg
<svg
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
 
>
  <path d="M12 2l0 20" />
  <path d="M14 20h-8a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h8" />
  <path d="M20 6a2 2 0 0 0 -2 -2" />
  <path d="M18 20a2 2 0 0 0 2 -2" />
  <path d="M20 10l0 4" />
</svg>

Use the Square Toggle icon

For a decorative icon beside text, add aria-hidden="true" to the SVG. For an icon-only control, put its accessible name on the button or link.

React example
import { IconSquareToggle } from '@tabler/icons-react';

<IconSquareToggle size={24} stroke={2} />
Read the React guide
Vue example
import { IconSquareToggle } from '@tabler/icons-vue';

<IconSquareToggle :size="24" :stroke="2" />
Read the Vue guide
Svelte 5 example
import { IconSquareToggle } from '@tabler/icons-svelte-runes';

<IconSquareToggle size={24} stroke={2} />
Read the Svelte guide

Compare variants and alternatives

Related

Related icons

See all 486 shape icons