Hard Hat icon
andrsrxn:hard-hat
The Hard Hat icon (andrsrxn:hard-hat) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/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
- andrsrxn/icons
- Author
- Andrés Raxón
- License
- MIT
- Size
- 24 × 24
- Category
- Buildings, Tools
- Tags
- hardhat
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><path fill="currentColor" d="m14.54 5.78l.17.16l.18.13l3.32 2.13c.28.18.43.27.53.4s.16.29.27.6l1.14 3.16c.43 1.2.65 1.8.35 2.23c-.29.42-.93.43-2.2.45l-12.6.18c-1.3.02-1.95.03-2.26-.4c-.3-.42-.09-1.03.34-2.26l1.15-3.31c.12-.34.18-.51.3-.65c.1-.13.25-.22.56-.4l3.36-2.03a2 2 0 0 0 .4-.3c.06-.06.1-.14.2-.3c.21-.35.31-.52.47-.64l.23-.13c.18-.07.38-.07.8-.07h1.42c.42 0 .63 0 .81.08s.33.22.62.52z" opacity=".2"/><rect width="3.82" height="20.57" x="22.28" y="14.9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" rx="1.5" transform="rotate(90 22.28 14.9)"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m8.17 14.9l1.2-8.22c.07-.47.1-.7.18-.9A2 2 0 0 1 11 4.51c.2-.04.44-.04.91-.04s.7 0 .9.04a2 2 0 0 1 1.46 1.24c.07.2.11.42.19.88l1.36 8.27m5.18 0c0-4.06-2.68-7.5-6.38-8.61M3 14.9a9 9 0 0 1 6.39-8.61"/></g></svg>How to use the Hard Hat icon
React
import { Icon } from "@iconify/react";
<Icon icon="andrsrxn:hard-hat" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="andrsrxn:hard-hat" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="andrsrxn:hard-hat" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--hard-hat]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:hard-hat"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="andrsrxn:hard-hat"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/andrsrxn/hard-hat.svg" alt="Hard Hat icon" width="24" height="24">Related icons in andrsrxn/icons
Hard Hat icon in other icon sets
Hard Hat icon FAQ
Is the Hard Hat icon free for commercial use?
Yes. andrsrxn/icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Hard Hat icon in React?
Install @iconify/react and render <Icon icon="andrsrxn:hard-hat" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Hard Hat icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/andrsrxn/hard-hat.svg" alt="Hard Hat icon">, or paste the SVG code inline to style it with CSS.