The Lucide octagon x icon depicts a red octagon with a white 'X' inside, commonly used to represent actions like deletion, stopping, or indicating an error or warning.
Common uses
- Delete confirmation button
- Error message indicator
- Close modal action
Use it in React
Install
npm i lucide-reactImport & render
import { OctagonX } from 'lucide-react';
<OctagonX size={24} />Details
- Library
- Lucide (1,713 icons)
- License
- ISC
- viewBox
0 0 24 24- Keywords
- deletestopalertwarningtimesclearmathoctagonxcancel octagonclose octagonerror octagonstop octagon
FAQ
- What is the primary purpose of the octagon x icon?
- It's typically used to signify destructive actions, errors, or to close elements like modals or alerts.
- How do I use the octagon x icon in a React application?
- You can import it directly from the 'lucide-react' library using: import { OctagonX } from 'lucide-react'.
- What is the license for the Lucide octagon x icon?
- The Lucide icon library, including the octagon x icon, is available under the ISC license.
Related icons
The same idea in other libraries, and near matches in Lucide.
Looking for something else? Search Lucide 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 →