John KuehJohn Kueh

x circle icon

Heroicons · x-circle · MIT

Download SVG

The Heroicons x circle icon depicts a close or cancel action within a circular boundary, commonly used to dismiss modals, close alerts, or clear input fields.

Common uses

  • Close modal window
  • Dismiss notification banner
  • Clear search input

Use it in React

Install
npm i @heroicons/react
Import & render
import { XCircleIcon } from '@heroicons/react/24/outline';

<XCircleIcon className="size-6" />

Styles

Heroicons ships this icon in 4 styles — each its own import:

24/outline
<XCircleIcon className="size-6" />
24/solid
<XCircleIcon className="size-6" />
20/solid
<XCircleIcon className="size-6" />
16/solid
<XCircleIcon className="size-6" />

Details

Library
Heroicons (324 icons)
License
MIT
viewBox
0 0 24 24
Keywords
xcircleclose circlecancel circledismisserror

FAQ

What is the x circle icon used for?
It's typically used for actions like closing, canceling, or dismissing elements in a user interface.
How do I use the x circle icon in React?
Import it using: import { XCircleIcon } from '@heroicons/react/24/outline'
What is the license for Heroicons?
Heroicons are released under the MIT license, allowing for free commercial and non-commercial use.

Related icons

The same idea in other libraries, and near matches in Heroicons.

Looking for something else? Search Heroicons 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 →