Moon icon
Download the Moon icon as free SVG or PNG. Compare outline and filled styles. Copy React, Vue or Svelte code.
- night
- dark-mode
- dark
- theme
- crescent
- sleep
- lunar
- evening
- weather
- nature
Style
Size
Stroke
Filled icons have no stroke
Color
- Category
- general
- Styles
- Outline, filled
- Component
- IconMoon
- License
- MIT · Paweł Kuna
Code
Copy it the way you use it
moon.svg
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008" />
</svg> Use the Moon icon
For a decorative icon beside text, add aria-hidden="true" to the SVG. For an icon-only control, put its accessible name on the button or link.
React example
import { IconMoon } from '@tabler/icons-react';
<IconMoon size={24} stroke={2} />Read the React guideVue example
import { IconMoon } from '@tabler/icons-vue';
<IconMoon :size="24" :stroke="2" />Read the Vue guideSvelte 5 example
import { IconMoon } from '@tabler/icons-svelte-runes';
<IconMoon size={24} stroke={2} />Read the Svelte guideCompare variants and alternatives
Related