Warning icon
ion:warning
The Warning icon (ion:warning) is a free SVG icon from the IonIcons set by Ben Sperry. It is drawn on a 512 × 512 grid. IonIcons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- IonIcons
- Author
- Ben Sperry
- License
- MIT
- Size
- 512 × 512
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path fill="currentColor" d="M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0 0 80 446.25h340.89a32 32 0 0 0 28.18-47.17m-198.6-1.83a20 20 0 1 1 20-20a20 20 0 0 1-20 20m21.72-201.15l-5.74 122a16 16 0 0 1-32 0l-5.74-121.95a21.73 21.73 0 0 1 21.5-22.69h.21a21.74 21.74 0 0 1 21.73 22.7Z"/></svg>How to use the Warning icon
React
import { Icon } from "@iconify/react";
<Icon icon="ion:warning" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="ion:warning" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="ion:warning" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[ion--warning]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/ion -->
<div class="i-ion:warning"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="ion:warning"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/ion/warning.svg" alt="Warning icon" width="24" height="24">Related icons in IonIcons
Warning icon in other icon sets
Warning icon FAQ
Is the Warning icon free for commercial use?
Yes. IonIcons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Warning icon in React?
Install @iconify/react and render <Icon icon="ion: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/ion/warning.svg" alt="Warning icon">, or paste the SVG code inline to style it with CSS.