1. Icon Monks
  2. Interface icons
  3. X Square

X Square icon

The x square icon is a free interface icon from Icon Monks, drawn as one clean path on a 256-unit grid in six weights. It is free for personal and commercial use under the MIT license.

X Square icon, thin weight
Thin
SVG
X Square icon, light weight
Light
SVG
X Square icon, regular weight
Regular
SVG
X Square icon, bold weight
Bold
SVG
X Square icon, fill weight
Fill
SVG
X Square icon, duotone weight
Duotone
SVG

Open in the icon browserCustomize size and color, then download PNG, WebP or PDF.

About the x square icon

It is the x icon set inside a square, for app-style tiles, so it keeps the exact outline of the x icon. Use it to stand for close, cancel and dismiss. The regular weight is a single path made of 3 shapes, and the duotone weight adds a 20% tint behind the outline.

Pairs well with the macro and calendar slash icons, which share the “cancel” theme. Use the same weight for all of them so they read as one set.

When to use the x square icon

It belongs to the interface set, made for buttons, menus, toolbars and app navigation. Pair it with the related icons below so a screen stays in one visual style.

Use the x square icon in your code

React

import { XSquare } from '@icon-monks/react';

<XSquare size={24} />

Vue

<script setup>
import { XSquare } from '@icon-monks/vue';
</script>

<XSquare :size="24" />

Web component

<icon-monks name="x-square" size="24"></icon-monks>

Icon font

<i class="im im-x-square"></i>

Flutter

Icon(IconMonks.xSquare)

SwiftUI

Image(iconMonks: .xSquare)

Compose

import com.designmonks.icons.IconMonks
import com.designmonks.icons.regular.XSquare

Icon(IconMonks.Regular.XSquare, contentDescription = null)

Need setup steps? See the getting started guide or the page for React, Flutter, SwiftUI or Jetpack Compose.

Tags

Related interface icons

See all 489 interface icons

Similar icons in other categories

Questions about the x square icon

Is the x square icon free for commercial use?

Yes. The x square icon is released under the MIT license, so you can use it in personal, client and commercial projects without paying or adding credit in your interface.

How do I change the color and size of the x square icon?

The icon draws in currentColor, so it takes the text color around it. In React, Vue and the web component, set the size and color props; in the icon browser, pick a color and size before you download a PNG, WebP, SVG or PDF.

What is the difference between the x square and x icons?

The x square icon is the x icon set inside a square, for app-style tiles. Both share the same outline and come in all six weights, so you can swap one for the other to show a change of state.

Last updated with version 0.4.3. Release notes