Skip to content

X Square

The x-square icon represents a close or cancel button, commonly used in user interfaces to dismiss or remove elements.

Exports at 24 × 24 px

X Square icon from Iconoir
Get Pro

Code

X Square in your framework

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

export const XSquareIcon = (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="M21 3.6v16.8a.6.6 0 0 1-.6.6H3.6a.6.6 0 0 1-.6-.6V3.6a.6.6 0 0 1 .6-.6h16.8a.6.6 0 0 1 .6.6M10 8l4 8m0-8l-4 8"/>
  </svg>
);

Other libraries

X Square in 7 more libraries

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

Iconoir

Icons that share its tags, in the same style.

  • Xmark icon from Iconoir
  • Xmark Square icon from Iconoir
  • Xmark Circle icon from Iconoir
  • Slash Square icon from Iconoir
  • User Xmark icon from Iconoir
  • Bubble Xmark icon from Iconoir
  • Download Square icon from Iconoir
  • Erase icon from Iconoir
  • Slash icon from Iconoir
  • X icon from Iconoir
  • Arrow Left Tag icon from Iconoir
  • Arrow Reduce Tag icon from Iconoir
  • Arrow Right icon from Iconoir
  • Arrow Right Circle icon from Iconoir
  • Arrow Right Tag icon from Iconoir
  • Arrow Separate icon from Iconoir
  • Arrow Separate Vertical icon from Iconoir
  • Bin Half icon from Iconoir
  • Database Xmark icon from Iconoir
  • Download icon from Iconoir
  • Download Circle icon from Iconoir
  • Download Data Window icon from Iconoir
  • Drag icon from Iconoir
  • Drag Hand Gesture icon from Iconoir

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

Get Pro

Pricing

Iconoir MCP, with Pro

Ask for X Square or any of 1,682 Iconoir 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 Square 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 Square from a prompt

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

Get Pro