ICONYZ
English
Cocktail icon from Boxicons

Cocktail icon

boxicons:cocktail

The Cocktail icon (boxicons:cocktail) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons 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
Boxicons
Author
Boxicons
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="m21.45 5.83l1.11-1.66l-3-2a1.003 1.003 0 0 0-1.41.32L15.44 7h-4.48a4.44 4.44 0 0 0-1.27-2.68C8.84 3.47 7.71 3 6.51 3s-2.33.47-3.18 1.32S2.01 6.3 2.01 7.5s.47 2.33 1.32 3.18a4.46 4.46 0 0 0 2.94 1.29c.16.62.38 1.21.68 1.76l-.03.05s.04.02.07.03a8.02 8.02 0 0 0 6.03 4.11v2.07h-3v2h8v-2h-3v-2.07c3.94-.49 7-3.86 7-7.93v-2c0-.55-.45-1-1-1h-3.23l1.55-2.59l2.13 1.42ZM4 7.5c0-.67.26-1.3.73-1.77c.95-.94 2.59-.94 3.54 0c.35.35.59.79.68 1.27H7c-.55 0-1 .45-1 1v1.95A2.49 2.49 0 0 1 4 7.5M14 16c-1.5 0-2.87-.56-3.92-1.47c.08 0 .15.01.23.01c1.48 0 2.96-.4 4.23-1.19c1.43-.89 3.21-1.11 4.82-.65a5.99 5.99 0 0 1-5.35 3.3Zm6-6c0 .27-.02.53-.06.79c-2.16-.62-4.55-.33-6.47.86c-1.49.93-3.36 1.14-5.03.6C8.16 11.55 8 10.8 8 10V9h12z"/></svg>

How to use the Cocktail icon

React

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

<Icon icon="boxicons:cocktail" width="24" />

Vue

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

<template>
  <Icon icon="boxicons:cocktail" width="24" />
</template>

Svelte

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

<Icon icon="boxicons:cocktail" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="boxicons:cocktail"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/boxicons/cocktail.svg" alt="Cocktail icon" width="24" height="24">

Related icons in Boxicons

Cocktail icon in other icon sets

Cocktail icon FAQ

Is the Cocktail icon free for commercial use?

Yes. Boxicons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Cocktail icon in React?

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

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

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

Browse all Boxicons →