Javascript icon
material-icon-theme:javascript
The Javascript icon (material-icon-theme:javascript) is a free SVG icon from the Material Icon Theme set by Material Extensions. It is drawn on a 24 × 24 grid. Material Icon Theme 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
- Material Icon Theme
- Author
- Material Extensions
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#ffca28" d="M2 2v12h12V2zm6 6h1v4a1.003 1.003 0 0 1-1 1H7a1.003 1.003 0 0 1-1-1v-1h1v1h1zm3 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"/></svg>How to use the Javascript icon
React
import { Icon } from "@iconify/react";
<Icon icon="material-icon-theme:javascript" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="material-icon-theme:javascript" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="material-icon-theme:javascript" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[material-icon-theme--javascript]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/material-icon-theme -->
<div class="i-material-icon-theme:javascript"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="material-icon-theme:javascript"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/material-icon-theme/javascript.svg" alt="Javascript icon" width="24" height="24">Related icons in Material Icon Theme
Javascript icon in other icon sets
Javascript icon FAQ
Is the Javascript icon free for commercial use?
Yes. Material Icon Theme icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Javascript icon in React?
Install @iconify/react and render <Icon icon="material-icon-theme:javascript" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Javascript icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/material-icon-theme/javascript.svg" alt="Javascript icon">, or paste the SVG code inline to style it with CSS.