---
title: "Mouse animated icon"
description: "Mouse animated icon (Preferences). A click. Light: the mouse is pressed into the desk with a hit, three click marks flash out beside the left button and spread as they fade, and the mouse springs back with a small overshoot. Strong: a double-click, two presses in quick succession, the second deeper, each with its own flash of click marks. The mouse stays rigid and only dips as a whole."
canonical: https://generativeicons.com/icons/mouse/
---

# Mouse animated icon

A click. Light: the mouse is pressed into the desk with a hit, three click marks flash out beside the left button and spread as they fade, and the mouse springs back with a small overshoot. Strong: a double-click, two presses in quick succession, the second deeper, each with its own flash of click marks. The mouse stays rigid and only dips as a whole.

- Id: `mouse`
- Category: Preferences
- Search terms: computer mouse, left click, right click, double click, input device, peripheral, scroll wheel, mice, pointing device
- One action, back to rest
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/mouse.lottie (dotLottie, 6539 bytes, sha256 74aa7d6e5c92f540eb0cb178ab75c6f395d06de36f1372355071f901674dc621)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add mouse
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/mouse.mjs';

export function MouseIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/mouse.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/mouse/ · https://generativeicons.com/api/icons/mouse
