---
title: "Power animated icon"
description: "Power animated icon (Everyday controls). The bar rises out of the ring and locks into the top gap to switch on; reverse sinks it back to off."
canonical: https://generativeicons.com/icons/power/
---

# Power animated icon

The bar rises out of the ring and locks into the top gap to switch on; reverse sinks it back to off.

- Id: `power`
- Category: Everyday controls
- Search terms: on off, on-off, power button, power on, power off, turn on, turn off, shut down, shutdown, switch on, standby, boot, power switch
- Two states: off to on, played forward and back
- 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/power.lottie (dotLottie, 6001 bytes, sha256 4ead1b9db7d2ae87f5b81c2b36b1130e3a6f2fb35c8d959155cb152684c55028)
- License: MIT

## Install

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

## React

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

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