ICONYZ
English
Duck icon from Boxicons

Duck icon

boxicons:duck

The Duck icon (boxicons:duck) 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.38 10.08a.98.98 0 0 0-1.09.22l-.22.22c-.41.41-.83.72-1.24.93c-1.7.85-3.69.71-5.2-.33a5.48 5.48 0 0 0 1.27-4.6c-.39-2.18-2.09-3.94-4.24-4.39c-1.66-.34-3.35.06-4.64 1.11a5.5 5.5 0 0 0-2.01 3.81l-.03-.04h-2s0 2.72 2.6 2.97q.21.405.48.78A6.01 6.01 0 0 0 2 16.58c.28 3.04 3 5.43 6.18 5.43h6.1c4.38 0 7.69-3.01 7.69-7v-4c0-.4-.24-.77-.62-.92ZM20 15c0 2.9-2.39 5-5.69 5h-6.1c-2.16 0-4-1.59-4.19-3.61c-.16-1.72.79-3.35 2.37-4.05c.28-.12.56-.28.88-.49c.27-.18.44-.47.45-.79s-.13-.63-.38-.83C6.49 9.56 6 8.56 6 7.5s.47-2.05 1.29-2.72c.63-.52 1.4-.78 2.2-.78c.25 0 .51.03.77.08c1.34.28 2.44 1.42 2.68 2.78c.24 1.34-.3 2.67-1.4 3.47a.98.98 0 0 0-.41.73c-.02.29.08.58.29.79l.1.1c2.15 2.15 5.45 2.67 8.21 1.29c.09-.04.18-.09.27-.14v1.92Z"/><path fill="currentColor" d="M9 6a1 1 0 1 0 0 2a1 1 0 1 0 0-2"/></svg>

How to use the Duck icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Boxicons

Duck icon in other icon sets

Duck icon FAQ

Is the Duck 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 Duck icon in React?

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

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

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

Browse all Boxicons →