Skip to content

X Mark

The 'x-mark' icon represents a close or cancel button, commonly used to dismiss or exit a window, dialog, or alert.

Exports at 24 × 24 px

X Mark icon from HeroIcons v1 Outline
Get Pro

Code

X Mark in your framework

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

export const XMarkIcon = (props: React.SVGProps<SVGSVGElement>) => (
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" {...props}>
    <path fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1.5" d="m4.5 19.5l15-15m-15 0l15 15"/>
  </svg>
);

Other libraries

X Mark in 2 more libraries

Each library draws it its own way. Open one to compare.

HeroIcons v1 Outline

Icons that share its tags, in the same style.

  • X icon from HeroIcons v1 Outline
  • X Circle icon from HeroIcons v1 Outline
  • Bookmark Slash icon from HeroIcons v1 Outline
  • No Symbol icon from HeroIcons v1 Outline
  • Arrow Circle Left icon from HeroIcons v1 Outline
  • Arrow Circle Right icon from HeroIcons v1 Outline
  • Arrow Circle Up icon from HeroIcons v1 Outline
  • Arrow Down Circle icon from HeroIcons v1 Outline
  • Bookmark Square icon from HeroIcons v1 Outline
  • Chevron Double Down icon from HeroIcons v1 Outline
  • Chevron Double Left icon from HeroIcons v1 Outline
  • Chevron Double Right icon from HeroIcons v1 Outline
  • Chevron Double Up icon from HeroIcons v1 Outline
  • Chevron Down icon from HeroIcons v1 Outline
  • Chevron Left icon from HeroIcons v1 Outline
  • Chevron Right icon from HeroIcons v1 Outline
  • Chevron Up icon from HeroIcons v1 Outline
  • Cursor Click icon from HeroIcons v1 Outline
  • Stop icon from HeroIcons v1 Outline
  • Archive Box X Mark icon from HeroIcons v1 Outline
  • Arrow Circle Down icon from HeroIcons v1 Outline
  • Arrow Down icon from HeroIcons v1 Outline
  • Arrow Down Left icon from HeroIcons v1 Outline
  • Arrow Down On Square icon from HeroIcons v1 Outline

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

Get Pro

Pricing

HeroIcons v1 Outline MCP, with Pro

Ask for X Mark or any of 385 HeroIcons v1 Outline 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 Mark 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 Mark from a prompt

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

Get Pro