Hat icon
hugeicons:hat
The Hat icon (hugeicons:hat) is a free SVG icon from the Huge Icons set by Hugeicons. It is drawn on a 24 × 24 grid. Huge 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
- Huge Icons
- Author
- Hugeicons
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m4.5 14l-2.153 1.722a.93.93 0 0 0-.347.723a.88.88 0 0 0 .496.803C4.79 18.32 8.196 19 12 19s7.211-.68 9.503-1.752a.88.88 0 0 0 .497-.803a.93.93 0 0 0-.347-.723L19.5 14"/><path d="M12 15c3.067 0 5.79-.393 7.5-1l-.407-3.663c-.282-2.538-.423-3.808-1.277-4.572C16.96 5 15.684 5 13.13 5h-2.26c-2.554 0-3.831 0-4.686.765c-.854.764-.995 2.034-1.277 4.572L4.5 14c1.71.607 4.433 1 7.5 1m-1-5h2"/></g></svg>How to use the Hat icon
React
import { Icon } from "@iconify/react";
<Icon icon="hugeicons:hat" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="hugeicons:hat" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="hugeicons:hat" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[hugeicons--hat]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/hugeicons -->
<div class="i-hugeicons:hat"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="hugeicons:hat"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/hugeicons/hat.svg" alt="Hat icon" width="24" height="24">Related icons in Huge Icons
Hat icon in other icon sets
Hat icon FAQ
Is the Hat icon free for commercial use?
Yes. Huge Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Hat icon in React?
Install @iconify/react and render <Icon icon="hugeicons:hat" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Hat icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/hugeicons/hat.svg" alt="Hat icon">, or paste the SVG code inline to style it with CSS.