gentleface

Gentleface › Notifications & status › x-circle

x-circle icon

X circle: clear, reject, clear input, clear field. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed. Part of the free toolbar icon set.

Animated x-circle-shake · line-round

The cross pulls into the middle and goes. Its strokes then strike one after the other, each knocking the ring along its own line, and the whole mark shakes its head from side to side and stops.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.2 s to 2.15 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M2.904 2.904C3.538 2.269 4.273 1.787 5.107 1.456C5.876 1.152 6.673 1 7.5 1C8.327 1 9.124 1.152 9.893 1.456C10.727 1.787 11.462 2.269 12.096 2.904C12.731 3.538 13.213 4.273 13.544 5.107C13.848 5.876 14 6.673 14 7.5C14 8.327 13.848 9.124 13.544 9.893C13.213 10.727 12.731 11.462 12.096 12.096C11.462 12.731 10.727 13.213 9.893 13.544C9.124 13.848 8.327 14 7.5 14C6.673 14 5.876 13.848 5.107 13.544C4.273 13.213 3.538 12.731 2.904 12.096C2.269 11.462 1.787 10.727 1.456 9.893C1.152 9.124 1 8.327 1 7.5C1 6.673 1.152 5.876 1.456 5.107C1.787 4.273 2.269 3.538 2.904 2.904ZM3.611 11.389C4.148 11.926 4.769 12.334 5.475 12.614C6.126 12.871 6.801 13 7.5 13C8.199 13 8.874 12.871 9.525 12.614C10.231 12.334 10.852 11.926 11.389 11.389C11.926 10.852 12.334 10.231 12.614 9.525C12.871 8.874 13 8.199 13 7.5C13 6.801 12.871 6.126 12.614 5.475C12.334 4.769 11.926 4.148 11.389 3.611C10.852 3.074 10.231 2.666 9.525 2.386C8.874 2.129 8.199 2 7.5 2C6.801 2 6.126 2.129 5.475 2.386C4.769 2.666 4.148 3.074 3.611 3.611C3.074 4.148 2.666 4.769 2.386 5.475C2.129 6.126 2 6.801 2 7.5C2 8.199 2.129 8.874 2.386 9.525C2.666 10.231 3.074 10.852 3.611 11.389ZM9.5 4.997C9.636 4.997 9.754 5.047 9.854 5.146C9.951 5.244 10 5.362 10 5.5C10 5.638 9.951 5.756 9.854 5.854L8.207 7.5L9.854 9.146C9.953 9.246 10.003 9.364 10.003 9.5C10.003 9.636 9.953 9.754 9.854 9.854C9.754 9.953 9.636 10.003 9.5 10.003C9.364 10.003 9.246 9.953 9.146 9.854L7.5 8.207L5.854 9.854C5.756 9.951 5.638 10 5.5 10C5.362 10 5.244 9.951 5.146 9.854C5.047 9.754 4.997 9.636 4.997 9.5C4.997 9.364 5.047 9.246 5.146 9.146L6.793 7.5L5.146 5.854C5.047 5.754 4.997 5.636 4.997 5.5C4.997 5.364 5.047 5.246 5.146 5.146C5.246 5.047 5.364 4.997 5.5 4.997C5.636 4.997 5.754 5.047 5.854 5.146L7.5 6.793L9.146 5.146C9.246 5.047 9.364 4.997 9.5 4.997Z"/></svg>
React
// Gentleface "x-circle" (line-round), MIT. https://gentleface.com/icons/x-circle
import type { SVGProps } from 'react';

export function XCircleIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M2.904 2.904C3.538 2.269 4.273 1.787 5.107 1.456C5.876 1.152 6.673 1 7.5 1C8.327 1 9.124 1.152 9.893 1.456C10.727 1.787 11.462 2.269 12.096 2.904C12.731 3.538 13.213 4.273 13.544 5.107C13.848 5.876 14 6.673 14 7.5C14 8.327 13.848 9.124 13.544 9.893C13.213 10.727 12.731 11.462 12.096 12.096C11.462 12.731 10.727 13.213 9.893 13.544C9.124 13.848 8.327 14 7.5 14C6.673 14 5.876 13.848 5.107 13.544C4.273 13.213 3.538 12.731 2.904 12.096C2.269 11.462 1.787 10.727 1.456 9.893C1.152 9.124 1 8.327 1 7.5C1 6.673 1.152 5.876 1.456 5.107C1.787 4.273 2.269 3.538 2.904 2.904ZM3.611 11.389C4.148 11.926 4.769 12.334 5.475 12.614C6.126 12.871 6.801 13 7.5 13C8.199 13 8.874 12.871 9.525 12.614C10.231 12.334 10.852 11.926 11.389 11.389C11.926 10.852 12.334 10.231 12.614 9.525C12.871 8.874 13 8.199 13 7.5C13 6.801 12.871 6.126 12.614 5.475C12.334 4.769 11.926 4.148 11.389 3.611C10.852 3.074 10.231 2.666 9.525 2.386C8.874 2.129 8.199 2 7.5 2C6.801 2 6.126 2.129 5.475 2.386C4.769 2.666 4.148 3.074 3.611 3.611C3.074 4.148 2.666 4.769 2.386 5.475C2.129 6.126 2 6.801 2 7.5C2 8.199 2.129 8.874 2.386 9.525C2.666 10.231 3.074 10.852 3.611 11.389ZM9.5 4.997C9.636 4.997 9.754 5.047 9.854 5.146C9.951 5.244 10 5.362 10 5.5C10 5.638 9.951 5.756 9.854 5.854L8.207 7.5L9.854 9.146C9.953 9.246 10.003 9.364 10.003 9.5C10.003 9.636 9.953 9.754 9.854 9.854C9.754 9.953 9.636 10.003 9.5 10.003C9.364 10.003 9.246 9.953 9.146 9.854L7.5 8.207L5.854 9.854C5.756 9.951 5.638 10 5.5 10C5.362 10 5.244 9.951 5.146 9.854C5.047 9.754 4.997 9.636 4.997 9.5C4.997 9.364 5.047 9.246 5.146 9.146L6.793 7.5L5.146 5.854C5.047 5.754 4.997 5.636 4.997 5.5C4.997 5.364 5.047 5.246 5.146 5.146C5.246 5.047 5.364 4.997 5.5 4.997C5.636 4.997 5.754 5.047 5.854 5.146L7.5 6.793L9.146 5.146C9.246 5.047 9.364 4.997 9.5 4.997Z" />
    </svg>
  );
}
Vue
Vue: see /icons/x-circle.md
Svelte
Svelte: see /icons/x-circle.md
HTML img
HTML img: see /icons/x-circle.md
CSS
CSS: see /icons/x-circle.md
Data URL
Data URL: see /icons/x-circle.md
Sprite
Sprite: see /icons/x-circle.md
SwiftUI
SwiftUI: see /icons/x-circle.md
Compose
Compose: see /icons/x-circle.md
Android XML
Android XML: see /icons/x-circle.md
Flutter
Flutter: see /icons/x-circle.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { XCircleIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
clear, reject, clear input, clear field, offer declined, wrong answer, incorrect answer, cancelled, canceled, wont fix, not planned, rejected, declined
Alternatives
  • x: close or dismiss a panel or dialog
Don’t confuse with
  • trash: trash deletes data; clear only empties a field
  • thumbs-down: dislike or not-helpful feedback, not reject
Also fits
  • clear search: the clear button inside a search field
  • close: a clear or cancel button that stands alone, e.g. inside a field
  • cancel: a cancel status, or a cancel action that must read alone
  • error: the Codicons convention, × in a circle means error; use where the product follows it
Not for
  • block (use ban): × in a circle means cancel, clear or reject, not a prohibition
Tags
x, close, times, circle, cancel
Category
Notifications & status
Component name
XCircleIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 10

More notifications & status icons

For agents

Metadata: /icons/x-circle.json · Markdown: /icons/x-circle.md · SVG: https://gentleface.com/svg/{style}/16/x-circle.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/x-circle.png