Library Compact icon
codicon:library-compact
The Library Compact icon (codicon:library-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
- librarycompact
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="currentColor" d="M1.749 0h-.5C.559 0 0 .559 0 1.249v9.496c0 .69.559 1.249 1.249 1.249h.5c.69 0 1.249-.559 1.249-1.249V1.249C2.998.559 2.439 0 1.749 0m.249 10.745a.25.25 0 0 1-.25.25h-.5a.25.25 0 0 1-.25-.25V1.249a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25zM5.745 0h-.5c-.69 0-1.249.559-1.249 1.249v9.496c0 .69.559 1.249 1.249 1.249h.5c.69 0 1.249-.559 1.249-1.249V1.249C6.994.559 6.435 0 5.745 0m.25 10.745a.25.25 0 0 1-.25.25h-.5a.25.25 0 0 1-.25-.25V1.249a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25zm5.963-.446l-1.93-7.247a1.24 1.24 0 0 0-.582-.76a1.24 1.24 0 0 0-.949-.126l-.482.128a1.24 1.24 0 0 0-.76.582a1.24 1.24 0 0 0-.126.948l1.93 7.247c.086.323.292.593.582.76a1.24 1.24 0 0 0 .949.126l.483-.129c.323-.085.592-.292.76-.581c.167-.289.212-.625.126-.949zm-.992.448a.25.25 0 0 1-.152.116l-.483.129a.24.24 0 0 1-.19-.025a.25.25 0 0 1-.116-.152l-1.93-7.247a.25.25 0 0 1 .025-.19a.25.25 0 0 1 .152-.116l.482-.128a.25.25 0 0 1 .306.177l1.93 7.247a.25.25 0 0 1-.025.19z"/></svg>How to use the Library Compact icon
React
import { Icon } from "@iconify/react";
<Icon icon="codicon:library-compact" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codicon:library-compact" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codicon:library-compact" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--library-compact]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:library-compact"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codicon:library-compact"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codicon/library-compact.svg" alt="Library Compact icon" width="24" height="24">Related icons in Codicons
Library Compact icon FAQ
Is the Library 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 Library Compact icon in React?
Install @iconify/react and render <Icon icon="codicon:library-compact" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Library Compact icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/library-compact.svg" alt="Library Compact icon">, or paste the SVG code inline to style it with CSS.