Chocolate icon
A hand-drawn chocolate icon that animates on its own: an SVG on a 24px grid in thin, regular and bold strokes. Free to download and use in the apps you build (LumioUI License). It takes your text colour through currentColor.
- Category
- Food
- Grid
- 24 × 24
- Strokes
- 1.5 · 2 · 2.5
- Name
chocolate
Stroke weights and sizes
Use it in React Native
Paste the SVG into react-native-svg's SvgXml. The Icon component covers a curated set by name, and Animated Icons plays the motion natively.
TSX ChocolateIcon.tsx
import { SvgXml } from "react-native-svg";
const ChocolateIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M7.5 3.5L16.5 3.5C17.6 3.5 18.5 4.4 18.5 5.5L18.5 18.5C18.5 19.6 17.6 20.5 16.5 20.5L7.5 20.5C6.4 20.5 5.5 19.6 5.5 18.5L5.5 5.5C5.5 4.4 6.4 3.5 7.5 3.5Z"></path><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="12" y1="4" x2="12" y2="10.5"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="5.5" y1="7.2" x2="18.5" y2="7.2"></line><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M5.5 13.5L7.7 11.6L9.9 13.5L12 11.6L14.2 13.5L16.4 11.6L18.5 13.5"></path></svg>`;
<SvgXml xml={ChocolateIcon} width={24} height={24} color="#111" /> SVG code
The still glyph. The animated version, linked above, plays its motion on its own with SMIL, so it needs no script.
SVG chocolate.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M7.5 3.5L16.5 3.5C17.6 3.5 18.5 4.4 18.5 5.5L18.5 18.5C18.5 19.6 17.6 20.5 16.5 20.5L7.5 20.5C6.4 20.5 5.5 19.6 5.5 18.5L5.5 5.5C5.5 4.4 6.4 3.5 7.5 3.5Z"></path><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="12" y1="4" x2="12" y2="10.5"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="5.5" y1="7.2" x2="18.5" y2="7.2"></line><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M5.5 13.5L7.7 11.6L9.9 13.5L12 11.6L14.2 13.5L16.4 11.6L18.5 13.5"></path></svg> On the web, link it straight from the CDN:
HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/chocolate.svg" width="24" height="24" alt="Chocolate" />