Hover the icon or press Play. Suggested motion: rock. Pick another to preview it and update the animated code:
Sun Moon icon
A free sun moon icon from Lucide, ready for React. Use it static or animated: both versions are below, copy-paste or one shadcn command away. Sized in em and colored by currentColor.
Also known aslight iconday iconbrightness iconweather iconlight mode iconrain iconsnow iconstorm icon
- License
- ISC license
- Project
- lucide.dev
npx shadcn@latest add https://ui.cuelark.com/r/icons/lucide/sun-moon.jsonimport * as React from "react";
/**
* Sun Moon from Lucide (https://lucide.dev/), ISC.
* Via Cuelark UI: ui.cuelark.com/icons/lucide/sun-moon. Sized in em, colored by currentColor.
*/
export function LuSunMoonIcon(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
aria-hidden="true"
fill="none"
strokeWidth="2"
viewBox="0 0 24 24"
strokeLinecap="round"
strokeLinejoin="round"
stroke="currentColor"
fill="currentColor"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path d="M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4" />
<path d="M12 2v2" />
<path d="M12 20v2" />
<path d="m4.9 4.9 1.4 1.4" />
<path d="m17.7 17.7 1.4 1.4" />
<path d="M2 12h2" />
<path d="M20 12h2" />
<path d="m6.3 17.7-1.4 1.4" />
<path d="m19.1 4.9-1.4 1.4" />
</svg>
);
}import { LuSunMoon } from "react-icons/lu";
export function Example() {
return <LuSunMoon className="size-5" />;
}<svg
fill="none"
stroke-width="2"
viewBox="0 0 24 24"
stroke-linecap="round"
stroke-linejoin="round"
stroke="currentColor"
fill="currentColor"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4" />
<path d="M12 2v2" />
<path d="M12 20v2" />
<path d="m4.9 4.9 1.4 1.4" />
<path d="m17.7 17.7 1.4 1.4" />
<path d="M2 12h2" />
<path d="M20 12h2" />
<path d="m6.3 17.7-1.4 1.4" />
<path d="m19.1 4.9-1.4 1.4" />
</svg>"Sun Moon" icon from Lucide (https://lucide.dev/), licensed under ISC license.