Chocolate Bar icon
andrsrxn:chocolate-bar
The Chocolate Bar icon (andrsrxn:chocolate-bar) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- andrsrxn/icons
- Author
- Andrés Raxón
- License
- MIT
- Size
- 24 × 24
- Category
- Food
- Tags
- chocolatebar
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><rect width="7.75" height="10.84" fill="currentColor" opacity=".2" rx="2" transform="rotate(-45 32.27 1.4)scale(1 -1)"/><rect width="9.49" height="10.84" fill="currentColor" opacity=".2" rx="2" transform="rotate(-45 26.54 -12.43)scale(1 -1)"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m16.77 14.92l3.67-3.67c1.33-1.34 2-2 2-2.83s-.67-1.5-2-2.83l-2-2c-1.34-1.34-2-2-2.83-2s-1.5.66-2.83 2L9.1 7.25m4.65 10.69l-2.46 2.46c-1.33 1.33-2 2-2.83 2s-1.5-.67-2.83-2l-2-2c-1.34-1.34-2-2-2-2.84s.66-1.5 2-2.83l2.45-2.45"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13.84 18.04c.7.69 1.04 1.04 1.53.97c.48-.06.7-.42 1.12-1.15c.29-.48.51-1.02.53-1.5c.03-1.36-1.67-2.86-1.67-2.86L10.2 8.36S8.91 6.8 7.57 6.91c-.42.04-.9.2-1.34.42c-.86.4-1.3.6-1.38 1.11c-.1.51.3.9 1.06 1.66zm5.6-13.45l-6.5 6.5m0-6.5l6.5 6.5"/></g></svg>How to use the Chocolate Bar icon
React
import { Icon } from "@iconify/react";
<Icon icon="andrsrxn:chocolate-bar" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="andrsrxn:chocolate-bar" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="andrsrxn:chocolate-bar" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--chocolate-bar]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:chocolate-bar"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="andrsrxn:chocolate-bar"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/andrsrxn/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. andrsrxn/icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Chocolate Bar icon in React?
Install @iconify/react and render <Icon icon="andrsrxn: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/andrsrxn/chocolate-bar.svg" alt="Chocolate Bar icon">, or paste the SVG code inline to style it with CSS.