ICONYZ
English
Sword icon from Phosphor

Sword icon

ph:sword

The Sword icon (ph:sword) is a free SVG icon from the Phosphor set by Phosphor Icons. It is drawn on a 256 × 256 grid. Phosphor 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
Phosphor
Author
Phosphor Icons
License
MIT
Size
256 × 256
Tags
weapon, knife, dagger, gladius, video games, rpg, gaming, war
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><path fill="currentColor" d="M216 32h-64a8 8 0 0 0-6.34 3.12l-64 83.21l-9.66-9.64a16 16 0 0 0-22.64 0l-12.69 12.7a16 16 0 0 0 0 22.63l20 20l-28 28a16 16 0 0 0 0 22.63l12.69 12.68a16 16 0 0 0 22.62 0l28-28l20 20a16 16 0 0 0 22.64 0l12.69-12.7a16 16 0 0 0 0-22.63l-9.64-9.64l83.21-64A8 8 0 0 0 224 104V40a8 8 0 0 0-8-8M52.69 216L40 203.32l28-28L80.68 188Zm70.61-8L48 132.71L60.7 120l75.3 75.31ZM208 100.06l-81.74 62.88L115.32 152l50.34-50.34a8 8 0 0 0-11.32-11.31L104 140.68l-10.93-10.94L155.94 48H208Z"/></svg>

How to use the Sword icon

React

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

<Icon icon="ph:sword" width="24" />

Vue

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

<template>
  <Icon icon="ph:sword" width="24" />
</template>

Svelte

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

<Icon icon="ph:sword" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[ph--sword]"></span>

UnoCSS

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

Web component

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

<iconify-icon icon="ph:sword"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/ph/sword.svg" alt="Sword icon" width="24" height="24">

Related icons in Phosphor

Sword icon in other icon sets

Sword icon FAQ

Is the Sword icon free for commercial use?

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

How do I use the Sword icon in React?

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

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

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

Browse all Phosphor icons →