Collapse All Compact icon
codicon:collapse-all-compact
The Collapse All Compact icon (codicon:collapse-all-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
- collapseall, allcompact, collapseallcompact
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><g fill="currentColor"><path d="M11 2.09c.58.2 1 .76 1 1.41v5c0 1.93-1.57 3.5-3.5 3.5h-5c-.65 0-1.21-.42-1.41-1H8.5A2.5 2.5 0 0 0 11 8.5z"/><path d="M7.5 4.5c.28 0 .5.22.5.5s-.22.5-.5.5h-5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5z"/><path fill-rule="evenodd" d="M8.5 0c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-7C.67 10 0 9.33 0 8.5v-7C0 .67.67 0 1.5 0zm-7 1c-.28 0-.5.22-.5.5v7c0 .28.22.5.5.5h7c.28 0 .5-.22.5-.5v-7c0-.28-.22-.5-.5-.5z" clip-rule="evenodd"/></g></svg>How to use the Collapse All Compact icon
React
import { Icon } from "@iconify/react";
<Icon icon="codicon:collapse-all-compact" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codicon:collapse-all-compact" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codicon:collapse-all-compact" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--collapse-all-compact]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:collapse-all-compact"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codicon:collapse-all-compact"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codicon/collapse-all-compact.svg" alt="Collapse All Compact icon" width="24" height="24">Related icons in Codicons
Collapse All Compact icon FAQ
Is the Collapse All 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 Collapse All Compact icon in React?
Install @iconify/react and render <Icon icon="codicon:collapse-all-compact" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Collapse All Compact icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/collapse-all-compact.svg" alt="Collapse All Compact icon">, or paste the SVG code inline to style it with CSS.