X icon

A hand-drawn x icon that animates on its own: an SVG on a 24px grid in thin, regular and bold strokes. Free to download and use in the apps you build (LumioUI License). It takes your text colour through currentColor.

Category
Interface
Grid
24 × 24
Strokes
1.5 · 2 · 2.5
Name
x

Stroke weights and sizes

X icon, thin · 1.5 stroke
Thin · 1.5
X icon, regular · 2 stroke
Regular · 2
X icon, bold · 2.5 stroke
Bold · 2.5
X icon at 16px
16px
X icon at 24px
24px
X icon at 32px
32px
X icon at 48px
48px

Use it in React Native

The Icon component draws x by name, sized and coloured from your theme. Add it with npx @lumioui/cli add icon.

TSX Example.tsx
import { Icon } from "@/components/ui/icon";

<Icon name="x" size={24} />
// colour and stroke follow your theme; pass color / strokeWidth to override

SVG code

The still glyph. The animated version, linked above, plays its motion on its own with SMIL, so it needs no script.

SVG x.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M6 6L18 18" stroke-dasharray="17"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M18 6L6 18" stroke-dasharray="17"></path></svg>

On the web, link it straight from the CDN:

HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/x.svg" width="24" height="24" alt="X" />

Where LumioUI uses it

Related icons

All 670 interface icons → · Browse all 3,072 icons