Hexagons icon
keyline-icons:hexagons
The Hexagons icon (keyline-icons:hexagons) is a free SVG icon from the Keyline Icons set. It is drawn on a 24 × 24 grid. Keyline 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
- Keyline Icons
- Author
- Keyline Icons
- License
- MIT
- Size
- 24 × 24
- Tags
- hexagon
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.5 13.2057C5.652 13.118 5.8245 13.0717 6 13.0717C6.1755 13.0717 6.348 13.118 6.5 13.2057L9.5 14.9378C9.8094 15.1164 10 15.4465 10 15.8038L10 19.2679C10 19.6252 9.8094 19.9553 9.5 20.1339L6.5 21.866C6.348 21.9537 6.1755 22 6 22C5.8245 22 5.652 21.9537 5.5 21.866L2.5 20.1339C2.1906 19.9553 2 19.6252 2 19.2679L2 15.8038C2 15.4465 2.1906 15.1164 2.5 14.9378L5.5 13.2057ZM17.5 13.2057C17.652 13.118 17.8245 13.0717 18 13.0717C18.1755 13.0717 18.348 13.118 18.5 13.2057L21.5 14.9378C21.8094 15.1164 22 15.4465 22 15.8038L22 19.2679C22 19.6252 21.8094 19.9553 21.5 20.1339L18.5 21.866C18.348 21.9537 18.1755 22 18 22C17.8245 22 17.652 21.9537 17.5 21.866L14.5 20.1339C14.1906 19.9553 14 19.6252 14 19.2679L14 15.8038C14 15.4465 14.1906 15.1164 14.5 14.9378L17.5 13.2057ZM11.5 2.134C11.652 2.0463 11.8245 2.0001 12 2.0001C12.1755 2.0001 12.348 2.0463 12.5 2.134L15.5 3.8661C15.8094 4.0447 16 4.3748 16 4.7321L16 8.1962C16 8.5535 15.8094 8.8836 15.5 9.0622L12.5 10.7943C12.348 10.882 12.1755 10.9283 12 10.9283C11.8245 10.9283 11.652 10.882 11.5 10.7943L8.5 9.0622C8.1906 8.8836 8 8.5535 8 8.1962L8 4.7321C8 4.3748 8.1906 4.0447 8.5 3.8661L11.5 2.134Z"/></svg>How to use the Hexagons icon
React
import { Icon } from "@iconify/react";
<Icon icon="keyline-icons:hexagons" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="keyline-icons:hexagons" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="keyline-icons:hexagons" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[keyline-icons--hexagons]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/keyline-icons -->
<div class="i-keyline-icons:hexagons"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="keyline-icons:hexagons"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/keyline-icons/hexagons.svg" alt="Hexagons icon" width="24" height="24">Related icons in Keyline Icons
Hexagons icon in other icon sets
Hexagons icon FAQ
Is the Hexagons icon free for commercial use?
Yes. Keyline Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Hexagons icon in React?
Install @iconify/react and render <Icon icon="keyline-icons:hexagons" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Hexagons icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/keyline-icons/hexagons.svg" alt="Hexagons icon">, or paste the SVG code inline to style it with CSS.