Skip to content

X

The X icon represents close, cancel, and dismiss actions in user interface applications.

Exports at 24 × 24 px

X icon from Lucide
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="M18 6L6 18M6 6l12 12"/>
  </svg>
);

Lucide

Icons that share its tags, in the same style.

  • Square X icon from Lucide
  • Circle X icon from Lucide
  • Clipboard X icon from Lucide
  • Copy X icon from Lucide
  • Calendar X icon from Lucide
  • Badge X icon from Lucide
  • Bookmark X icon from Lucide
  • Archive X icon from Lucide
  • Alarm Clock Minus icon from Lucide
  • Book X icon from Lucide
  • Calendar Minus icon from Lucide
  • List X icon from Lucide
  • Message Circle X icon from Lucide
  • Calendar Minus  2 icon from Lucide
  • Calendar X  2 icon from Lucide
  • Clipboard Minus icon from Lucide
  • Delete icon from Lucide
  • Eraser icon from Lucide
  • File X icon from Lucide
  • Axe icon from Lucide
  • Bookmark Minus icon from Lucide
  • Book Minus icon from Lucide
  • Circle Minus icon from Lucide
  • Diamond Minus icon from Lucide

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

Get Pro

Tags

Browse by tag

X is tagged delete, remove, cancel and 5 more. Related tags follow; each opens its icons from every library.

Pricing

Lucide MCP, with Pro

Ask for X or any of 1,655 Lucide 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