ICONYZ
English
Cancel icon from Material Design Icons

Cancel icon

mdi:cancel

The Cancel icon (mdi:cancel) is a free SVG icon from the Material Design Icons set by Pictogrammers. It is drawn on a 24 × 24 grid. Material Design 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
Material Design Icons
Author
Pictogrammers
License
Apache-2.0
Size
24 × 24
Tags
prohibited, ban, do not disturb alt, denied, block, forbid, no, clear
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.5 0 10 4.5 10 10s-4.5 10-10 10S2 17.5 2 12S6.5 2 12 2m0 2c-1.9 0-3.6.6-4.9 1.7l11.2 11.2c1-1.4 1.7-3.1 1.7-4.9c0-4.4-3.6-8-8-8m4.9 14.3L5.7 7.1C4.6 8.4 4 10.1 4 12c0 4.4 3.6 8 8 8c1.9 0 3.6-.6 4.9-1.7"/></svg>

How to use the Cancel icon

React

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

<Icon icon="mdi:cancel" width="24" />

Vue

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

<template>
  <Icon icon="mdi:cancel" width="24" />
</template>

Svelte

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

<Icon icon="mdi:cancel" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="mdi:cancel"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/mdi/cancel.svg" alt="Cancel icon" width="24" height="24">

Cancel icon in other icon sets

Cancel icon FAQ

Is the Cancel icon free for commercial use?

Yes. Material Design Icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.

How do I use the Cancel icon in React?

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

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

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

Browse all Material Design Icons →