John KuehJohn Kueh

swap icon

Phosphor · swap · MIT

Download SVG

The Phosphor swap icon depicts two arrows in a circular motion, commonly used in UI to represent an action that exchanges or reverses the order of items.

Common uses

  • Reordering list items
  • Toggling between two states
  • Exchanging values in a form

Use it in React

Install
npm i @phosphor-icons/react
Import & render
import { Swap } from '@phosphor-icons/react';

<Swap size={24} />

Styles

Phosphor ships this icon in 6 styles — each its own import:

regular
<Swap size={24} />
thin
<Swap size={24} weight="thin" />
light
<Swap size={24} weight="light" />
bold
<Swap size={24} weight="bold" />
fill
<Swap size={24} weight="fill" />
duotone
<Swap size={24} weight="duotone" />

Details

Library
Phosphor (1,512 icons)
License
MIT
viewBox
0 0 256 256
Category
design
Keywords
layersreplaceexchangereversedesigneditorswapcycleswitch

FAQ

What is the swap icon used for?
It signifies an action that reverses or exchanges the position or state of elements.
How do I use the swap icon in React?
Import it using `import { Swap } from '@phosphor-icons/react'` and then use it as a component: `<Swap />`.
What is the license for the Phosphor swap icon?
The Phosphor icon library, including the swap icon, is available under the MIT license.

Looking for something else? Search Phosphor and 4 more libraries by description →

The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →