ICONYZ
English
Close Compact icon from Codicons

Close Compact icon

codicon:close-compact

The Close Compact icon (codicon:close-compact) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 12 × 12 grid. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Codicons
Author
Microsoft Corporation
License
CC-BY-4.0
Size
12 × 12
Tags
closecompact
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="currentColor" d="M10.15 1.14c.2-.2.51-.2.71 0s.2.51 0 .71L6.712 5.993l4.148 4.147c.2.2.2.51 0 .71c-.1.1-.23.15-.35.15h-.01a.47.47 0 0 1-.35-.15L6 6.702L1.85 10.85c-.1.1-.23.15-.35.15a.47.47 0 0 1-.351-.15c-.2-.2-.2-.51 0-.71l4.144-4.145L1.15 1.85c-.2-.2-.2-.51 0-.71s.51-.2.71 0l4.144 4.145z"/></svg>

How to use the Close Compact icon

React

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

<Icon icon="codicon:close-compact" width="24" />

Vue

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

<template>
  <Icon icon="codicon:close-compact" width="24" />
</template>

Svelte

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

<Icon icon="codicon:close-compact" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="codicon:close-compact"></iconify-icon>

HTML image

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

Related icons in Codicons

Close Compact icon FAQ

Is the Close Compact icon free for commercial use?

Yes. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Close Compact icon in React?

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

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

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

Browse all Codicons →