Skip to content

X

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

Exports at 24 × 24 px

X icon from HeroIcons v1 Outline
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" fill="none" stroke="currentColor" {...props}>
    <path fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M6 18L18 6M6 6l12 12"/>
  </svg>
);

HeroIcons v1 Outline

Icons that share its tags, in the same style.

  • X Mark 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 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 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