ICONYZ
English
Twitter icon from Dashicons

Twitter icon

dashicons:twitter

The Twitter icon (dashicons:twitter) is a free SVG icon from the Dashicons set by WordPress. It is drawn on a 20 × 20 grid. Dashicons are released under the GPL license, which allows use in personal and commercial projects; modified versions of the icon files must keep the same license. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Dashicons
Author
WordPress
License
GPL-2.0-or-later
Size
20 × 20
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="currentColor" d="M18.94 4.46c-.49.73-1.11 1.38-1.83 1.9c.01.15.01.31.01.47c0 4.85-3.69 10.44-10.43 10.44c-2.07 0-4-.61-5.63-1.65c.29.03.58.05.88.05c1.72 0 3.3-.59 4.55-1.57a3.67 3.67 0 0 1-3.42-2.55c.22.04.45.07.69.07c.33 0 .66-.05.96-.13a3.68 3.68 0 0 1-2.94-3.6v-.04c.5.27 1.06.44 1.66.46a3.68 3.68 0 0 1-1.63-3.06c0-.67.18-1.3.5-1.84c1.81 2.22 4.51 3.68 7.56 3.83c-.06-.27-.1-.55-.1-.84a3.67 3.67 0 0 1 3.67-3.66c1.06 0 2.01.44 2.68 1.16c.83-.17 1.62-.47 2.33-.89c-.28.85-.86 1.57-1.62 2.02a7 7 0 0 0 2.11-.57"/></svg>

How to use the Twitter icon

React

import { Icon } from "@iconify/react";

<Icon icon="dashicons:twitter" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="dashicons:twitter" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="dashicons:twitter" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[dashicons--twitter]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/dashicons -->
<div class="i-dashicons:twitter"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="dashicons:twitter"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/dashicons/twitter.svg" alt="Twitter icon" width="24" height="24">

Related icons in Dashicons

Twitter icon in other icon sets

Twitter icon FAQ

Is the Twitter icon free for commercial use?

Yes. Dashicons are released under the GPL license, which allows use in personal and commercial projects; modified versions of the icon files must keep the same license.

How do I use the Twitter icon in React?

Install @iconify/react and render <Icon icon="dashicons:twitter" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Twitter icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/dashicons/twitter.svg" alt="Twitter icon">, or paste the SVG code inline to style it with CSS.

Browse all Dashicons →