X icon
Download the X logo as free SVG or PNG. Compare outline and filled styles. Copy React, Vue or Svelte code.
- x
- tweet
- social
- social-media
- microblog
- logo
- brand
- close
- cancel
Style
Size
Stroke
Filled icons have no stroke
Color
- Category
- brand
- Styles
- Outline, filled
- Component
- IconBrandX
- License
- MIT · Paweł Kuna
Code
Copy it the way you use it
brand-x.svg
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M4 4l11.733 16h4.267l-11.733 -16l-4.267 0" />
<path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" />
</svg> Use the X icon
For a decorative icon beside text, add aria-hidden="true" to the SVG. For an icon-only control, put its accessible name on the button or link.
React example
import { IconBrandX } from '@tabler/icons-react';
<IconBrandX size={24} stroke={2} />Read the React guideVue example
import { IconBrandX } from '@tabler/icons-vue';
<IconBrandX :size="24" :stroke="2" />Read the Vue guideSvelte 5 example
import { IconBrandX } from '@tabler/icons-svelte-runes';
<IconBrandX size={24} stroke={2} />Read the Svelte guideRelated