Hammer icon
prime:hammer
The Hammer icon (prime:hammer) is a free SVG icon from the Prime Icons set by PrimeTek. It is drawn on a 24 × 24 grid. Prime 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
- Prime Icons
- Author
- PrimeTek
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M11.577 4.237a.25.25 0 0 0-.354 0L9.037 6.423a.25.25 0 0 0 0 .354l8.186 8.186a.25.25 0 0 0 .354 0l2.186-2.186a.25.25 0 0 0 0-.354zm-1.414-1.06a1.75 1.75 0 0 1 2.474 0l8.186 8.186a1.75 1.75 0 0 1 0 2.474l-2.186 2.186a1.75 1.75 0 0 1-2.474 0L13.8 13.661l-6.67 6.67a2.447 2.447 0 0 1-3.46-3.461l6.67-6.67l-2.363-2.363a1.75 1.75 0 0 1 0-2.474zM11.4 11.26l-6.67 6.67a.947.947 0 1 0 1.34 1.339l6.67-6.67z" clip-rule="evenodd"/></svg>How to use the Hammer icon
React
import { Icon } from "@iconify/react";
<Icon icon="prime:hammer" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="prime:hammer" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="prime:hammer" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[prime--hammer]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/prime -->
<div class="i-prime:hammer"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="prime:hammer"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/prime/hammer.svg" alt="Hammer icon" width="24" height="24">Hammer icon in other icon sets
Hammer icon FAQ
Is the Hammer icon free for commercial use?
Yes. Prime Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Hammer icon in React?
Install @iconify/react and render <Icon icon="prime:hammer" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Hammer icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/prime/hammer.svg" alt="Hammer icon">, or paste the SVG code inline to style it with CSS.