ICONYZ
English
Battery icon from Pepicons

Battery icon

pepicons:battery

The Battery icon (pepicons:battery) is a free SVG icon from the Pepicons set by CyCraft. It is drawn on a 20 × 20 grid. Pepicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Pepicons
Author
CyCraft
License
CC-BY-4.0
Size
20 × 20
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g fill="currentColor"><rect width="2" height="5" x="17" y="7.5" rx=".5"/><path d="M4 7.5h3v5H4v-5Zm3.5 0h3v5h-3v-5Zm3.5 0h3v5h-3v-5Z"/><path fill-rule="evenodd" d="M14 4.5H4a3 3 0 0 0-3 3v5a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-5a3 3 0 0 0-3-3Zm-11 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5Z" clip-rule="evenodd"/></g></svg>

How to use the Battery icon

React

import { Icon } from "@iconify/react";

<Icon icon="pepicons:battery" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="pepicons:battery" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="pepicons:battery" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[pepicons--battery]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/pepicons -->
<div class="i-pepicons:battery"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="pepicons:battery"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/pepicons/battery.svg" alt="Battery icon" width="24" height="24">

Related icons in Pepicons

Battery icon in other icon sets

Battery icon FAQ

Is the Battery icon free for commercial use?

Yes. Pepicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Battery icon in React?

Install @iconify/react and render <Icon icon="pepicons:battery" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Battery icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/pepicons/battery.svg" alt="Battery icon">, or paste the SVG code inline to style it with CSS.

Browse all Pepicons →