ICONYZ
English
Chocolate Bar icon from OpenMoji

Chocolate Bar icon

openmoji:chocolate-bar

The Chocolate Bar icon (openmoji:chocolate-bar) is a free SVG icon from the OpenMoji set. It is drawn on a 72 × 72 grid. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
OpenMoji
Author
OpenMoji
License
CC-BY-SA-4.0
Size
72 × 72
Category
Food Drink
Tags
chocolatebar
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="72" height="72" viewBox="0 0 72 72"><path fill="#a57939" d="M53 32.755V5.906H19v33.61"/><path fill="#ea5a47" d="m55 25l-38 7v35h38z"/><g fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M38 9h11v9H38zM23 9h11v9H23zm32 16l-38 7v35h38z"/><path d="M53 20.932V5H19v22.541"/><path d="M38 23.847V22h9.503M23 26.764V22h11v2.625"/><path d="M47.503 22H38v1.847m-4 .778V22H23v4.764"/></g></svg>

How to use the Chocolate Bar icon

React

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

<Icon icon="openmoji:chocolate-bar" width="24" />

Vue

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

<template>
  <Icon icon="openmoji:chocolate-bar" width="24" />
</template>

Svelte

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

<Icon icon="openmoji:chocolate-bar" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[openmoji--chocolate-bar]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/openmoji -->
<div class="i-openmoji:chocolate-bar"></div>

Web component

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

<iconify-icon icon="openmoji:chocolate-bar"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/openmoji/chocolate-bar.svg" alt="Chocolate Bar icon" width="24" height="24">

Chocolate Bar icon in other icon sets

Chocolate Bar icon FAQ

Is the Chocolate Bar icon free for commercial use?

Yes. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license.

How do I use the Chocolate Bar icon in React?

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

How do I add the Chocolate Bar icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/openmoji/chocolate-bar.svg" alt="Chocolate Bar icon">, or paste the SVG code inline to style it with CSS.

Browse all OpenMoji icons →