ICONYZ
English
Shield Compact icon from Codicons

Shield Compact icon

codicon:shield-compact

The Shield Compact icon (codicon:shield-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
shieldcompact
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.5 1.833c-1.531 0-2.906-.278-4.146-1.52a.5.5 0 0 0-.706 0C4.405 1.555 3.029 1.833 1.5 1.833a.5.5 0 0 0-.5.5v3.002c0 3.218 1.642 5.405 4.841 6.473a.5.5 0 0 0 .318 0C9.36 10.741 11 8.553 11 5.335V2.333a.5.5 0 0 0-.5-.5M10 5.335c0 2.731-1.308 4.521-4 5.47c-2.691-.948-4-2.739-4-5.47V2.823c1.222-.051 2.669-.328 4-1.474c1.329 1.147 2.778 1.424 4 1.474zM6 4.5a1 1 0 0 1 .5 1.866V7a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 6 4.5"/></svg>

How to use the Shield Compact icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Codicons

Shield Compact icon FAQ

Is the Shield 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 Shield Compact icon in React?

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

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

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

Browse all Codicons →