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 Tabler Icons, 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
- MIT license
- Project
- github.com
npx shadcn@latest add https://ui.cuelark.com/r/icons/tabler/sun-moon.jsonimport * as React from "react";
/**
* Sun Moon from Tabler Icons (https://github.com/tabler/tabler-icons), MIT.
* Via Cuelark UI: ui.cuelark.com/icons/tabler/sun-moon. Sized in em, colored by currentColor.
*/
export function TbSunMoonIcon(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="M9.173 14.83a4 4 0 1 1 5.657 -5.657" />
<path d="M11.294 12.707l.174 .247a7.5 7.5 0 0 0 8.845 2.492a9 9 0 0 1 -14.671 2.914" />
<path d="M3 12h1" />
<path d="M12 3v1" />
<path d="M5.6 5.6l.7 .7" />
<path d="M3 21l18 -18" />
</svg>
);
}import { TbSunMoon } from "react-icons/tb";
export function Example() {
return <TbSunMoon 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="M9.173 14.83a4 4 0 1 1 5.657 -5.657" />
<path d="M11.294 12.707l.174 .247a7.5 7.5 0 0 0 8.845 2.492a9 9 0 0 1 -14.671 2.914" />
<path d="M3 12h1" />
<path d="M12 3v1" />
<path d="M5.6 5.6l.7 .7" />
<path d="M3 21l18 -18" />
</svg>"Sun Moon" icon from Tabler Icons (https://github.com/tabler/tabler-icons), licensed under MIT license.