The Tabler sun moon icon depicts the transition between day and night, commonly used to represent weather forecasts, climate information, or a theme toggle between light and dark modes.
Common uses
- Displaying current weather conditions (day/night).
- Indicating a change in weather over time.
- Toggling between light and dark UI themes.
Use it in React
Install
npm i @tabler/icons-reactImport & render
import { IconSunMoon } from '@tabler/icons-react';
<IconSunMoon size={24} stroke={2} />Details
- Library
- Tabler (5,093 icons)
- License
- MIT
- viewBox
0 0 24 24- Category
- Weather
- Keywords
- weatherdaynighthotcoldsunmoonclimateforecastmeteorologyday night toggleweather changetwilightdusk dawn
FAQ
- What does the sun-moon icon represent?
- It symbolizes the transition between day and night, often used for weather or theme-related features.
- How do I use the sun-moon icon in React?
- Import it using `import { IconSunMoon } from '@tabler/icons-react';` and then use it as a component: `<IconSunMoon />`.
- What is the license for this icon?
- The Tabler icon library, including the sun-moon icon, is available under the MIT license.
Related icons
The same idea in other libraries, and near matches in Tabler.