ICONYZ
English
Mail icon from Codicons

Mail icon

codicon:mail

The Mail icon (codicon:mail) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 24 × 24 grid. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Codicons
Author
Microsoft Corporation
License
CC-BY-4.0
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M13 3H3c-1.103 0-2 .897-2 2v6c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2M3 4h10c.552 0 1 .449 1 1v.201L8 8.432L2 5.201V5c0-.551.448-1 1-1m10 8H3a1 1 0 0 1-1-1V6.337L7.763 9.44a.5.5 0 0 0 .474 0L14 6.337V11a1 1 0 0 1-1 1"/></svg>

How to use the Mail icon

React

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

<Icon icon="codicon:mail" width="24" />

Vue

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

<template>
  <Icon icon="codicon:mail" width="24" />
</template>

Svelte

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

<Icon icon="codicon:mail" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="codicon:mail"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/codicon/mail.svg" alt="Mail icon" width="24" height="24">

Related icons in Codicons

Mail icon in other icon sets

Mail icon FAQ

Is the Mail icon free for commercial use?

Yes. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Mail icon in React?

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

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

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

Browse all Codicons →