Hexagon icon
andrsrxn:hexagon
The Hexagon icon (andrsrxn:hexagon) 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
- Design
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="M10.1 2.54c.93-.5 1.4-.76 1.9-.76s.97.26 1.9.76l2.72 1.47l2.62 1.61c.9.56 1.35.83 1.6 1.27c.26.44.27.97.3 2.03l.09 3.08l-.09 3.08c-.03 1.06-.04 1.59-.3 2.03c-.25.44-.7.71-1.6 1.27l-2.62 1.61l-2.72 1.47c-.93.5-1.4.76-1.9.76s-.97-.26-1.9-.76l-2.72-1.47l-2.62-1.61c-.9-.56-1.35-.83-1.6-1.27c-.26-.44-.27-.97-.3-2.03L2.77 12l.09-3.08c.03-1.06.04-1.59.3-2.03c.25-.44.7-.71 1.6-1.27l2.62-1.61z" opacity=".2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9.04 2.98c1.45-.82 2.17-1.23 2.96-1.23c.8 0 1.51.4 2.96 1.23l1.7.96l1.67.99c1.44.84 2.15 1.26 2.55 1.94c.4.69.4 1.52.41 3.18l.02 1.95l-.02 1.95c-.01 1.66-.02 2.49-.41 3.18c-.4.68-1.11 1.1-2.55 1.94l-1.68 1l-1.7.95c-1.44.82-2.16 1.23-2.95 1.23c-.8 0-1.51-.4-2.96-1.23l-1.7-.96l-1.67-.99c-1.44-.84-2.15-1.26-2.55-1.94c-.4-.69-.4-1.52-.41-3.18L2.69 12l.02-1.95c.01-1.66.02-2.49.41-3.18c.4-.68 1.11-1.1 2.55-1.94l1.68-1z"/></g></svg>How to use the Hexagon icon
React
import { Icon } from "@iconify/react";
<Icon icon="andrsrxn:hexagon" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="andrsrxn:hexagon" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="andrsrxn:hexagon" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--hexagon]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:hexagon"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="andrsrxn:hexagon"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/andrsrxn/hexagon.svg" alt="Hexagon icon" width="24" height="24">Hexagon icon in other icon sets
Hexagon icon FAQ
Is the Hexagon 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 Hexagon icon in React?
Install @iconify/react and render <Icon icon="andrsrxn:hexagon" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Hexagon icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/andrsrxn/hexagon.svg" alt="Hexagon icon">, or paste the SVG code inline to style it with CSS.