The Phosphor warning icon depicts a triangle with an exclamation mark, commonly used to signify caution, alerts, or potential issues within a user interface.
Common uses
- Displaying error messages
- Indicating incomplete form fields
- Highlighting system status alerts
Use it in React
Install
npm i @phosphor-icons/reactImport & render
import { Warning } from '@phosphor-icons/react';
<Warning size={24} />Styles
Phosphor ships this icon in 6 styles — each its own import:
regular
<Warning size={24} />thin
<Warning size={24} weight="thin" />light
<Warning size={24} weight="light" />bold
<Warning size={24} weight="bold" />fill
<Warning size={24} weight="fill" />duotone
<Warning size={24} weight="duotone" />Details
- Library
- Phosphor (1,512 icons)
- License
- MIT
- viewBox
0 0 256 256- Category
- system
- Keywords
- alertdangerdangerouscautionerrorssystemwarningexclamation
FAQ
- What is the purpose of the warning icon?
- The warning icon is used to draw attention to potential problems, errors, or important information that requires user awareness.
- How do I use the warning icon in React?
- You can import and use it in React with: import { Warning } from '@phosphor-icons/react'.
- What is the license for the Phosphor warning icon?
- The Phosphor icon library, including the warning icon, is distributed under the MIT license.
Related icons
The same idea in other libraries, and near matches in Phosphor.
Looking for something else? Search Phosphor and 4 more libraries by description →
The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →