# XIcon

> 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 x icon for React — part of lucide-animated.

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

## Install

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

## Usage

```tsx
import { XIcon } from "@/components/icons/x";

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

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

## Keywords

- x
- close
- delete
- remove
- cancel
- exit
- stop

## Similar icons

- [MessageCircleXIcon](https://lucide-animated.com/icons/message-circle-x.md)
- [MessageSquareXIcon](https://lucide-animated.com/icons/message-square-x.md)
- [BookmarkXIcon](https://lucide-animated.com/icons/bookmark-x.md)
- [BookmarkMinusIcon](https://lucide-animated.com/icons/bookmark-minus.md)
- [DeleteIcon](https://lucide-animated.com/icons/delete.md)
- [MapPinMinusIcon](https://lucide-animated.com/icons/map-pin-minus.md)
