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
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
- Chat Composer component
- Chip component
- Command Palette component
- Country Picker component
- Coupon Input component
- File Picker component
- Follow Button component
- Glass Search Morph component
- Location Search component
- Media Picker component
- Order Summary component
- Scan Frame component
- Login screen
- Passkey Create screen
- Signup Chat screen
- Chat List screen
- Chat Thread screen
- Empty States Set screen
- Feedback screen
- Help Center screen
- Not Found 404 screen
- Paywall Comparison screen
- Paywall Dark Stage screen
- Paywall Editorial screen
Related icons
A Arrow Down
A Arrow Up
A Large Small
Align Center
Align Center Horizontal
Align Center Vertical
Align End Horizontal
Align End Vertical
Align Horizontal Distribute Center
Align Horizontal Distribute End
Align Horizontal Distribute Start
Align Horizontal Justify Center
Align Horizontal Justify End
Align Horizontal Justify Start
Align Horizontal Space Around
Align Horizontal Space Between
Align Justify
Align Left