ICONYZ
English
Code icon from Fluent UI MDL2

Code icon

fluent-mdl2:code

The Code icon (fluent-mdl2:code) is a free SVG icon from the Fluent UI MDL2 set by Microsoft Corporation. It is drawn on a 2048 × 2048 grid. Fluent UI MDL2 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
Fluent UI MDL2
Author
Microsoft Corporation
License
MIT
Size
2048 × 2048
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="2048" height="2048" viewBox="0 0 2048 2048"><path fill="currentColor" d="M128 896q52 0 99-20t81-55t55-81t21-100q0-71-3-142t4-138t32-131t79-117q54-54 125-83T768 0v128q-53 0-99 20t-81 55t-55 82t-21 99q0 56 2 110t1 107t-10 102t-27 95t-52 86t-85 76q52 35 85 76t52 86t27 94t9 102t0 107t-2 111q0 53 20 99t55 81t81 55t100 21v128q-76 0-147-29t-125-83t-78-117t-32-130t-5-139t3-142q0-52-20-99t-55-81t-82-55t-99-21zM1280 0q76 0 147 29t125 83t78 117t32 130t5 139t-3 142q0 53 20 99t55 81t81 55t100 21v128q-53 0-99 20t-81 55t-55 82t-21 99q0 71 3 142t-4 138t-32 131t-79 117q-54 54-125 83t-147 29v-128q52 0 99-20t81-55t55-81t21-100q0-56-2-110t-1-107t10-102t27-95t52-86t85-76q-52-35-85-76t-52-86t-27-94t-9-102t0-107t2-111q0-52-20-99t-55-81t-82-55t-99-21z"/></svg>

How to use the Code icon

React

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

<Icon icon="fluent-mdl2:code" width="24" />

Vue

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

<template>
  <Icon icon="fluent-mdl2:code" width="24" />
</template>

Svelte

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

<Icon icon="fluent-mdl2:code" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[fluent-mdl2--code]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/fluent-mdl2 -->
<div class="i-fluent-mdl2:code"></div>

Web component

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

<iconify-icon icon="fluent-mdl2:code"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/fluent-mdl2/code.svg" alt="Code icon" width="24" height="24">

Related icons in Fluent UI MDL2

Code icon in other icon sets

Code icon FAQ

Is the Code icon free for commercial use?

Yes. Fluent UI MDL2 icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Code icon in React?

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

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

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

Browse all Fluent UI MDL2 icons →