ICONYZ
English
Moon icon from BoxIcons v2

Moon icon

bx:moon

The Moon icon (bx:moon) is a free SVG icon from the BoxIcons v2 set by Boxicons. It is drawn on a 24 × 24 grid. BoxIcons v2 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
BoxIcons v2
Author
Boxicons
License
MIT
Size
24 × 24
Tags
bx moon
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="M20.742 13.045a8 8 0 0 1-2.077.271c-2.135 0-4.14-.83-5.646-2.336a8.03 8.03 0 0 1-2.064-7.723A1 1 0 0 0 9.73 2.034a10 10 0 0 0-4.489 2.582c-3.898 3.898-3.898 10.243 0 14.143a9.94 9.94 0 0 0 7.072 2.93a9.93 9.93 0 0 0 7.07-2.929a10 10 0 0 0 2.583-4.491a1 1 0 0 0-1.224-1.224m-2.772 4.301a7.95 7.95 0 0 1-5.656 2.343a7.95 7.95 0 0 1-5.658-2.344c-3.118-3.119-3.118-8.195 0-11.314a8 8 0 0 1 2.06-1.483a10.03 10.03 0 0 0 2.89 7.848a9.97 9.97 0 0 0 7.848 2.891a8 8 0 0 1-1.484 2.059"/></svg>

How to use the Moon icon

React

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

<Icon icon="bx:moon" width="24" />

Vue

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

<template>
  <Icon icon="bx:moon" width="24" />
</template>

Svelte

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

<Icon icon="bx:moon" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="bx:moon"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/bx/moon.svg" alt="Moon icon" width="24" height="24">

Moon icon in other icon sets

Moon icon FAQ

Is the Moon icon free for commercial use?

Yes. BoxIcons v2 icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Moon icon in React?

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

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

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

Browse all BoxIcons v2 icons →