ICONYZ
English
Close icon from css.gg

Close icon

gg:close

The Close icon (gg:close) is a free SVG icon from the css.gg set by Astrit. It is drawn on a 24 × 24 grid. css.gg 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
css.gg
Author
Astrit
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="M6.225 4.811a1 1 0 0 0-1.414 1.414L10.586 12L4.81 17.775a1 1 0 1 0 1.414 1.414L12 13.414l5.775 5.775a1 1 0 0 0 1.414-1.414L13.414 12l5.775-5.775a1 1 0 0 0-1.414-1.414L12 10.586z"/></svg>

How to use the Close icon

React

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

<Icon icon="gg:close" width="24" />

Vue

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

<template>
  <Icon icon="gg:close" width="24" />
</template>

Svelte

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

<Icon icon="gg:close" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="gg:close"></iconify-icon>

HTML image

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

Related icons in css.gg

Close icon in other icon sets

Close icon FAQ

Is the Close icon free for commercial use?

Yes. css.gg 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="gg: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/gg/close.svg" alt="Close icon">, or paste the SVG code inline to style it with CSS.

Browse all css.gg icons →