ICONYZ
English
Close icon from Griddy Icons

Close icon

griddy-icons:close

The Close icon (griddy-icons:close) is a free SVG icon from the Griddy Icons set by Zuzana Benova. It is drawn on a 24 × 24 grid. Griddy 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
Griddy Icons
Author
Zuzana Benova
License
MIT
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="currentColor" d="m20.28 4.78l-1.06-1.06L12 10.94L4.78 3.72L3.72 4.78L10.94 12l-7.22 7.22l1.06 1.06L12 13.06l7.22 7.22l1.06-1.06L13.06 12z"/></svg>

How to use the Close icon

React

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

<Icon icon="griddy-icons:close" width="24" />

Vue

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

<template>
  <Icon icon="griddy-icons:close" width="24" />
</template>

Svelte

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

<Icon icon="griddy-icons:close" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="griddy-icons:close"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/griddy-icons/close.svg" alt="Close icon" width="24" height="24">

Related icons in Griddy Icons

Close icon in other icon sets

Close icon FAQ

Is the Close icon free for commercial use?

Yes. Griddy Icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Close icon in React?

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

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

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

Browse all Griddy Icons →