ICONYZ
English
Magic icon from Grommet Icons

Magic icon

grommet-icons:magic

The Magic icon (grommet-icons:magic) is a free SVG icon from the Grommet Icons set by Grommet. It is drawn on a 24 × 24 grid. Grommet Icons are released under the Apache 2.0 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
Grommet Icons
Author
Grommet
License
Apache-2.0
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-width="2" d="m2.5 19.5l17-17l2 2l-17 17zm.5.5L15 8l1 1L4 21zM5.5 3l-.5.5l.5.5l.5-.5zm6 0l-.5.5l.5.5l.5-.5zm-3 3l-.5.5l.5.5l.5-.5zm12 6l-.5.5l.5.5l.5-.5zm0 5l-.5.5l.5.5l.5-.5z"/></svg>

How to use the Magic icon

React

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

<Icon icon="grommet-icons:magic" width="24" />

Vue

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

<template>
  <Icon icon="grommet-icons:magic" width="24" />
</template>

Svelte

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

<Icon icon="grommet-icons:magic" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[grommet-icons--magic]"></span>

UnoCSS

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

Web component

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

<iconify-icon icon="grommet-icons:magic"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/grommet-icons/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. Grommet Icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.

How do I use the Magic icon in React?

Install @iconify/react and render <Icon icon="grommet-icons: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/grommet-icons/magic.svg" alt="Magic icon">, or paste the SVG code inline to style it with CSS.

Browse all Grommet Icons →