# MoonIcon

> For the complete documentation index, see [llms.txt](https://lucide-animated.com/llms.txt). Per-icon markdown is at `https://lucide-animated.com/icons/<name>.md`. An MCP server is available at `https://lucide-animated.com/mcp`.

> Animated moon icon for React — part of lucide-animated.

Source page: https://lucide-animated.com/icons/moon

## Install

```bash
npx shadcn@latest add "https://lucide-animated.com/r/moon.json"
```

## Usage

```tsx
import { MoonIcon } from "@/components/icons/moon";

export function Demo() {
  return <MoonIcon className="size-6" />;
}
```

The component animates on hover by default. All standard SVG props are forwarded.

## Keywords

- night
- dark
- moon

## Similar icons

- [SunMoonIcon](https://lucide-animated.com/icons/sun-moon.md)
- [ContrastIcon](https://lucide-animated.com/icons/contrast.md)
