ICONYZ
English
Warning Compact icon from Codicons

Warning Compact icon

codicon:warning-compact

The Warning Compact icon (codicon:warning-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
warningcompact
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.79 8.11l-3-6a2 2 0 0 0-3.58 0l-3 6C1.07 8.39 1 8.69 1 9c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2c0-.31-.07-.61-.21-.89M9 10H3c-.55 0-1-.45-1-1c0-.16.04-.31.1-.45l3-6c.17-.34.51-.55.9-.55s.72.21.9.55l3 6c.07.14.1.29.1.45c0 .55-.45 1-1 1M6.75 8.5c0 .41-.34.75-.75.75s-.75-.34-.75-.75s.34-.75.75-.75s.75.34.75.75m-1.25-2V4c0-.28.22-.5.5-.5s.5.22.5.5v2.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5"/></svg>

How to use the Warning Compact icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Codicons

Warning Compact icon FAQ

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

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

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

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

Browse all Codicons →