ICONYZ
English
Shield icon from Codicons

Shield icon

codicon:shield

The Shield icon (codicon:shield) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 24 × 24 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
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="M9.25 7.25c0 .513-.309.953-.75 1.146v1.108a.5.5 0 1 1-1 0V8.396A1.25 1.25 0 1 1 9.25 7.25M7.143 2.042a8.3 8.3 0 0 1-1.718.875a9.3 9.3 0 0 1-2.7.576l-.17.007h-.05A.5.5 0 0 0 2 4v2.755a7.5 7.5 0 0 0 3.685 6.457l2.062 1.219a.5.5 0 0 0 .509 0l2.06-1.218A7.5 7.5 0 0 0 14 6.756V4a.5.5 0 0 0-.508-.5h-.05q-.056 0-.168-.006a9 9 0 0 1-2.687-.577a8.7 8.7 0 0 1-1.724-.88a5 5 0 0 1-.4-.296a2 2 0 0 1-.111-.098a.5.5 0 0 0-.706.005l-.109.097c-.082.07-.213.173-.394.297M3 6.755V4.477q.212-.015.494-.052c.597-.079 1.412-.24 2.287-.574a9.3 9.3 0 0 0 1.925-.983q.172-.117.298-.215q.128.097.3.214c.424.285 1.058.65 1.922.983A10 10 0 0 0 13 4.48v2.277a6.5 6.5 0 0 1-3.193 5.596L8.001 13.42l-1.807-1.068A6.5 6.5 0 0 1 3 6.756"/></svg>

How to use the Shield icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Codicons

Shield icon in other icon sets

Shield icon FAQ

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

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

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

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

Browse all Codicons →