---
title: "Plug animated icon"
description: "Plug animated icon (Tools). The plug connects. Light: it draws back, then pushes home into its rest pose with a hit; impact ticks flash out from the top corners where the face meets the socket, the plug rebounds a little and seats, and the cable whips a beat behind and settles. Strong: a deeper draw-back, a harder push that knocks twice, two flashes of ticks, and a bigger cable whip."
canonical: https://generativeicons.com/icons/plug/
---

# Plug animated icon

The plug connects. Light: it draws back, then pushes home into its rest pose with a hit; impact ticks flash out from the top corners where the face meets the socket, the plug rebounds a little and seats, and the cable whips a beat behind and settles. Strong: a deeper draw-back, a harder push that knocks twice, two flashes of ticks, and a bigger cable whip.

- Id: `plug`
- Category: Tools
- Search terms: plug in, unplug, power plug, electric plug, power cord, cable, connect, electricity, adapter, mains
- 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/plug.lottie (dotLottie, 4150 bytes, sha256 7611f0d59551c317a23cd5ffe1d3c3938a9ebb2bda4c947a7024a1b5c318c996)
- License: MIT

## Install

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

## React

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

export function PlugIcon() {
  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/plug.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/plug/ · https://generativeicons.com/api/icons/plug
