ICONYZ
English
Cancel icon from Flat Color Icons

Cancel icon

flat-color-icons:cancel

The Cancel icon (flat-color-icons:cancel) is a free SVG icon from the Flat Color Icons set by Icons8. It is drawn on a 48 × 48 grid. Flat Color 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
Flat Color Icons
Author
Icons8
License
MIT
Size
48 × 48
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fill="#D50000" d="M24 6C14.1 6 6 14.1 6 24s8.1 18 18 18s18-8.1 18-18S33.9 6 24 6m0 4c3.1 0 6 1.1 8.4 2.8L12.8 32.4C11.1 30 10 27.1 10 24c0-7.7 6.3-14 14-14m0 28c-3.1 0-6-1.1-8.4-2.8l19.6-19.6C36.9 18 38 20.9 38 24c0 7.7-6.3 14-14 14"/></svg>

How to use the Cancel icon

React

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

<Icon icon="flat-color-icons:cancel" width="24" />

Vue

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

<template>
  <Icon icon="flat-color-icons:cancel" width="24" />
</template>

Svelte

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

<Icon icon="flat-color-icons:cancel" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="flat-color-icons:cancel"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/flat-color-icons/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. Flat Color Icons are released under the MIT 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="flat-color-icons: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/flat-color-icons/cancel.svg" alt="Cancel icon">, or paste the SVG code inline to style it with CSS.

Browse all Flat Color Icons →