Skip to content

X

The X icon represents a close or dismissal button, commonly used in graphical user interfaces to signify the action of closing or canceling.

Exports at 24 × 24 px

X icon from Unicons
Get Pro

Code

X in your framework

In any framework. Customize it above, and the code follows.

export const XIcon = (props: React.SVGProps<SVGSVGElement>) => (
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" {...props}>
    <path fill="currentColor" d="M8 19a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3a1 1 0 0 0 0-2a5 5 0 0 0-5 5v8a5 5 0 0 0 5 5a1 1 0 0 0 0-2m7.71-3.29a1 1 0 0 0 0-1.42L13.41 12l2.3-2.29a1 1 0 0 0-1.42-1.42L12 10.59l-2.29-2.3a1 1 0 0 0-1.42 1.42l2.3 2.29l-2.3 2.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l2.29-2.3l2.29 2.3a1 1 0 0 0 1.42 0M16 3a1 1 0 0 0 0 2a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3a1 1 0 0 0 0 2a5 5 0 0 0 5-5V8a5 5 0 0 0-5-5"/>
  </svg>
);

Unicons

Icons that share its tags, in the same style.

  • Window Restore icon from Unicons
  • Windows icon from Unicons
  • Window Section icon from Unicons
  • Wrap Text icon from Unicons
  • Windsock icon from Unicons
  • Windy icon from Unicons
  • Wordpress icon from Unicons
  • Wordpress Simple icon from Unicons
  • Wrench icon from Unicons
  • Comment Alt Slash icon from Unicons
  • Grip Horizontal Line icon from Unicons
  • Headphones icon from Unicons
  • Headphone Slash icon from Unicons
  • Multiply icon from Unicons
  • Square icon from Unicons
  • Square Full icon from Unicons
  • Square Shape icon from Unicons
  • Squint icon from Unicons
  • Star icon from Unicons
  • Star Half Alt icon from Unicons
  • Statistics icon from Unicons
  • Step Backward icon from Unicons
  • Step Backward Alt icon from Unicons
  • Step Backward Circle icon from Unicons

Skip the copy and paste. With Pro, your AI agent finds and installs any Unicons icon from a prompt.

Get Pro

Pricing

Unicons MCP, with Pro

Ask for X or any of 1,216 Unicons icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What the X icon means and where it's used, then how to install, style, label and license it.

4.9 out of 5 from 150+ developers

Install X from a prompt

MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.

Get Pro