Warning icon
codicon:warning
The Warning icon (codicon:warning) 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
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M14.831 11.965L9.206 1.714a1.375 1.375 0 0 0-2.412 0L1.169 11.965A1.377 1.377 0 0 0 2.375 14h11.25a1.377 1.377 0 0 0 1.206-2.035M13.625 13H2.375a.375.375 0 0 1-.329-.555l5.625-10.25a.375.375 0 0 1 .658 0l5.625 10.25a.376.376 0 0 1-.329.555M8.75 11.25a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0M7.5 9V5.5a.5.5 0 0 1 1 0V9a.5.5 0 0 1-1 0"/></svg>How to use the Warning icon
React
import { Icon } from "@iconify/react";
<Icon icon="codicon:warning" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codicon:warning" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codicon:warning" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--warning]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:warning"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codicon:warning"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codicon/warning.svg" alt="Warning icon" width="24" height="24">Related icons in Codicons
Warning icon in other icon sets
Warning icon FAQ
Is the Warning 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 icon in React?
Install @iconify/react and render <Icon icon="codicon:warning" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Warning icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/warning.svg" alt="Warning icon">, or paste the SVG code inline to style it with CSS.