Sword icon
boxicons:sword
The Sword icon (boxicons:sword) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M21 2h-3c-.27 0-.52.11-.71.29L7 12.59L4.71 10.3L3.3 11.71L5.59 14L2.3 17.29a.996.996 0 0 0 0 1.41l3 3c.2.2.45.29.71.29s.51-.1.71-.29l3.29-3.29l2.29 2.29l1.41-1.41L11.42 17L21.71 6.71A1 1 0 0 0 22 6V3c0-.55-.45-1-1-1M6 19.59L4.41 18L7 15.41L8.59 17zm14-14l-10 10L8.41 14l10-10H20z"/></svg>How to use the Sword icon
React
import { Icon } from "@iconify/react";
<Icon icon="boxicons:sword" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="boxicons:sword" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="boxicons:sword" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--sword]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:sword"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="boxicons:sword"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/boxicons/sword.svg" alt="Sword icon" width="24" height="24">Related icons in Boxicons
Sword icon in other icon sets
Sword icon FAQ
Is the Sword icon free for commercial use?
Yes. Boxicons 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="boxicons: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/boxicons/sword.svg" alt="Sword icon">, or paste the SVG code inline to style it with CSS.