Twitter X icon
bi:twitter-x
The Twitter X icon (bi:twitter-x) is a free SVG icon from the Bootstrap Icons set by The Bootstrap Authors. It is drawn on a 24 × 24 grid. Bootstrap Icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Bootstrap Icons
- Author
- The Bootstrap Authors
- License
- MIT
- Size
- 24 × 24
- Tags
- twitterx
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07l-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"/></svg>How to use the Twitter X icon
React
import { Icon } from "@iconify/react";
<Icon icon="bi:twitter-x" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="bi:twitter-x" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="bi:twitter-x" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[bi--twitter-x]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/bi -->
<div class="i-bi:twitter-x"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="bi:twitter-x"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/bi/twitter-x.svg" alt="Twitter X icon" width="24" height="24">Related icons in Bootstrap Icons
Twitter X icon in other icon sets
Twitter X icon FAQ
Is the Twitter X icon free for commercial use?
Yes. Bootstrap Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Twitter X icon in React?
Install @iconify/react and render <Icon icon="bi:twitter-x" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Twitter X icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/bi/twitter-x.svg" alt="Twitter X icon">, or paste the SVG code inline to style it with CSS.