Hard Hat Filled icon
boxicons:hard-hat-filled
The Hard Hat Filled icon (boxicons:hard-hat-filled) 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M21 15c0-.61-.06-1.22-.18-1.81c-.12-.58-.3-1.15-.53-1.69c-.22-.53-.5-1.05-.83-1.53c-.32-.47-.69-.92-1.1-1.33s-.86-.78-1.33-1.1c-.33-.22-.68-.41-1.03-.59V14h-1V5c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v9H8V6.95c-.35.18-.7.37-1.03.59c-.48.32-.92.69-1.33 1.1s-.77.85-1.1 1.33a9.1 9.1 0 0 0-1.36 3.22C3.06 13.78 3 14.39 3 15v3H2v2h20v-2h-1z"/></svg>How to use the Hard Hat Filled icon
React
import { Icon } from "@iconify/react";
<Icon icon="boxicons:hard-hat-filled" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="boxicons:hard-hat-filled" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="boxicons:hard-hat-filled" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--hard-hat-filled]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:hard-hat-filled"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="boxicons:hard-hat-filled"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/boxicons/hard-hat-filled.svg" alt="Hard Hat Filled icon" width="24" height="24">Related icons in Boxicons
Hard Hat Filled icon in other icon sets
Hard Hat Filled icon FAQ
Is the Hard Hat Filled 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 Hard Hat Filled icon in React?
Install @iconify/react and render <Icon icon="boxicons:hard-hat-filled" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Hard Hat Filled icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/boxicons/hard-hat-filled.svg" alt="Hard Hat Filled icon">, or paste the SVG code inline to style it with CSS.