Magic icon
fa-solid:magic
The Magic icon (fa-solid:magic) is a free SVG icon from the Font Awesome 5 Solid set by Dave Gandy. It is drawn on a 512 × 512 grid. Font Awesome 5 Solid icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Font Awesome 5 Solid
- Author
- Dave Gandy
- License
- CC-BY-4.0
- Size
- 512 × 512
- Category
- Objects, Interfaces, Design
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path fill="currentColor" d="m224 96l16-32l32-16l-32-16l-16-32l-16 32l-32 16l32 16zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0L53.34 53.33L0 80l53.34 26.67zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0s-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37c8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24M359.45 203.46l-50.91-50.91l86.6-86.6l50.91 50.91z"/></svg>How to use the Magic icon
React
import { Icon } from "@iconify/react";
<Icon icon="fa-solid:magic" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="fa-solid:magic" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="fa-solid:magic" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[fa-solid--magic]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/fa-solid -->
<div class="i-fa-solid:magic"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="fa-solid:magic"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/fa-solid/magic.svg" alt="Magic icon" width="24" height="24">Magic icon in other icon sets
Magic icon FAQ
Is the Magic icon free for commercial use?
Yes. Font Awesome 5 Solid icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.
How do I use the Magic icon in React?
Install @iconify/react and render <Icon icon="fa-solid:magic" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Magic icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/fa-solid/magic.svg" alt="Magic icon">, or paste the SVG code inline to style it with CSS.