# UndoIcon

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

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

## Install

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

## Usage

```tsx
import { UndoIcon } from "@/components/icons/undo";

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

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

## Keywords

- redo
- rerun
- history

## Similar icons

- [FileStackIcon](https://lucide-animated.com/icons/file-stack.md)
- [GalleryHorizontalEndIcon](https://lucide-animated.com/icons/gallery-horizontal-end.md)
- [GalleryVerticalEndIcon](https://lucide-animated.com/icons/gallery-vertical-end.md)
- [HistoryIcon](https://lucide-animated.com/icons/history.md)
- [RedoIcon](https://lucide-animated.com/icons/redo.md)
- [RedoDotIcon](https://lucide-animated.com/icons/redo-dot.md)
