X icon
The x 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.
Open in the icon browserCustomize size and color, then download PNG, WebP or PDF.
About the x icon
Use it to stand for close, cancel and dismiss. The regular weight is a single path made of 1 shape. It comes with 6 variants for states and actions: x circle, x diamond, x logo, x octagon, x ray and x square.
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 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 icon in your code
React
import { X } from '@icon-monks/react';
<X size={24} />Vue
<script setup>
import { X } from '@icon-monks/vue';
</script>
<X :size="24" />Web component
<icon-monks name="x" size="24"></icon-monks>Icon font
<i class="im im-x"></i>Flutter
Icon(IconMonks.x)SwiftUI
Image(iconMonks: .x)Compose
import com.designmonks.icons.IconMonks
import com.designmonks.icons.regular.X
Icon(IconMonks.Regular.X, contentDescription = null)Need setup steps? See the getting started guide or the page for React, Flutter, SwiftUI or Jetpack Compose.
Tags
Related interface icons
x-square
x-circle
x-diamond
cursor-x
flag-x
gear-x
heart-x
magnifying-glass-x
sliders-x
x-octagon
app-window-x
bookmark-x
browser-x
funnel-x
seal-x
squares-four-x
tab-x
trash-x
Similar icons in other categories
border-top-x
macro
macro-slash
presentation-x
terminal-x
axis-x
basket-x
bell-x
book-x
calendar-slash
calendar-x
camera-x
Questions about the x icon
Is the x icon free for commercial use?
Yes. The x 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 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.
Are there variants of the x icon?
Yes. The x icon has 6 variants, including x circle, x diamond, x logo and x octagon. Each one keeps the same base shape and comes in all six weights.
Last updated with version 0.4.3. Release notes