The 'twitter' icon represents the popular social media and microblogging platform Twitter.
Exports at 24 × 24 px
Code
Twitter in your framework
In any framework. Customize it above, and the code follows.
export const TwitterIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32" {...props}>
<g fill="currentColor"><path d="M16-.034C7.159-.034-.035 7.158-.035 16S7.159 32.034 16 32.034S32.035 24.842 32.035 16S24.841-.034 16-.034m0 31C7.748 30.966 1.035 24.252 1.035 16S7.748 1.034 16 1.034S30.965 7.748 30.965 16S24.252 30.966 16 30.966"/><path d="M24.794 11.046a3.7 3.7 0 0 0 .273-.643a.535.535 0 0 0-.781-.623a6 6 0 0 1-1.646.673a3.83 3.83 0 0 0-2.562-.987a3.82 3.82 0 0 0-3.814 3.973a8.82 8.82 0 0 1-5.735-3.178a.536.536 0 0 0-.876.07a3.81 3.81 0 0 0-.066 3.721a.6.6 0 0 0-.214.078a.57.57 0 0 0-.264.481c0 1.135.505 2.177 1.319 2.885l-.035.035a.53.53 0 0 0-.108.518a3.82 3.82 0 0 0 2.184 2.365a6.13 6.13 0 0 1-3.406.579a.545.545 0 0 0-.566.352a.536.536 0 0 0 .215.63a9.84 9.84 0 0 0 5.319 1.559c6.18 0 9.874-5.02 9.874-9.873l-.001-.164a7.1 7.1 0 0 0 1.541-1.66a.535.535 0 0 0-.651-.791m-1.745 1.755a.54.54 0 0 0-.222.461q.009.199.009.398c0 4.328-3.293 8.805-8.804 8.805a8.8 8.8 0 0 1-2.887-.488a7.1 7.1 0 0 0 3.045-1.39a.535.535 0 0 0-.32-.955a2.75 2.75 0 0 1-2.194-1.162q.38-.026.742-.124a.534.534 0 0 0-.036-1.04a2.74 2.74 0 0 1-2.081-1.905q.4.101.812.115c.235-.001.453-.145.526-.371s-.013-.475-.212-.607a2.75 2.75 0 0 1-1.143-2.945a9.88 9.88 0 0 0 6.568 2.972c.176.001.33-.062.437-.191s.148-.3.11-.464a2.75 2.75 0 0 1 4.682-2.506a.54.54 0 0 0 .494.159q.248-.05.489-.115a3 3 0 0 1-.226.151a.535.535 0 0 0 .338.988l.182-.023a6 6 0 0 1-.309.237"/></g>
</svg>
);Other libraries
Twitter in 8 more libraries
Each library draws it its own way. Open one to compare.
Elegant
More like it
Icons that share its tags, then the ones next to it in Elegant, in the same style.
Search Elegant
Skip the copy and paste. With Pro, your AI agent finds and installs any Elegant icon from a prompt.
Get ProTags
Browse by tag
Twitter is tagged platform, sharing, social-media and 3 more. Related tags follow; each opens its icons from every library.
Pricing
Elegant MCP, with Pro
Ask for Twitter or any of 100 Elegant icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the Twitter icon means and where it's used, then how to install, style, label and license it.
The 'twitter' icon represents the popular social media and microblogging platform Twitter. It is often associated with content creation, sharing, and online community.
The 'twitter' icon is commonly used in software and apps related to social media, blogging, or content creation, such as Twitter itself or other social media platforms.
From a UX perspective, the 'twitter' icon communicates a sense of community and sharing, indicating that a feature or tool is available for use.
Twitter is one of 100 icons in Elegant, made by Kenny Sing and released under GPL 3.0. It is drawn on a 32 × 32 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds TwitterIcon to components/icons/et-twitter.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed TwitterIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Twitter icon, or any of 100 Elegant icons, and install it from a prompt.
It's drawn in currentColor, so it takes the text color wherever you use it: a class like text-primary recolors it. To bake a color in, set one in Customize before you copy.
Set width and height on the component, or a class like size-6. It's drawn on a 32 × 32 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It follows the text color, so with text-foreground (or any theme token) it changes with your light and dark themes. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Twitter", so screen readers say what it does.
Yes. TwitterIcon passes every SVG prop to the svg element, so <TwitterIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
GPL 3.0 is copyleft: what you ship with the icons may have to use the same license. Check it fits your project first. The full terms are in the license, linked on this page.
Keep the GPL 3.0 notice with the icons, and credit Kenny Sing as it asks. GPL 3.0 is copyleft, so what you ship with them may have to use the same license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
8 other libraries draw an icon called Twitter. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are platform, sharing, social-media, content creation, online community and microblogging. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Twitter in another set.
4.9 out of 5 from 150+ developers
Install Twitter from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro