Gentleface › Shapes › hexagon
hexagon icon
hexagonHexagon: hexagon. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Animated hexagon-write · line-round
Every stroke erases along its own direction, then redraws one after another in the drawing’s order.
Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.25 s to 2.23 s. Examples and helper.
Code line-round
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M13.851 11.717C13.751 11.878 13.617 12.001 13.447 12.085L8.618 14.5C8.266 14.676 7.893 14.764 7.5 14.764C7.107 14.764 6.734 14.676 6.382 14.5L1.553 12.085C1.383 12.001 1.249 11.878 1.149 11.717C1.05 11.556 1 11.38 1 11.191L1 4.809C1 4.62 1.05 4.444 1.149 4.283C1.249 4.122 1.383 3.999 1.553 3.915L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L13.447 3.915C13.617 3.999 13.751 4.122 13.851 4.283C13.95 4.444 14 4.62 14 4.809L14 11.191C14 11.38 13.95 11.556 13.851 11.717ZM2 4.809L2 11.191L6.829 13.606C7.04 13.711 7.264 13.764 7.5 13.764C7.736 13.764 7.96 13.711 8.171 13.606L13 11.191L13 4.809L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L2 4.809Z"/></svg>
// Gentleface "hexagon" (line-round), MIT. https://gentleface.com/icons/hexagon
import type { SVGProps } from 'react';
export function HexagonIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
<path d="M13.851 11.717C13.751 11.878 13.617 12.001 13.447 12.085L8.618 14.5C8.266 14.676 7.893 14.764 7.5 14.764C7.107 14.764 6.734 14.676 6.382 14.5L1.553 12.085C1.383 12.001 1.249 11.878 1.149 11.717C1.05 11.556 1 11.38 1 11.191L1 4.809C1 4.62 1.05 4.444 1.149 4.283C1.249 4.122 1.383 3.999 1.553 3.915L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L13.447 3.915C13.617 3.999 13.751 4.122 13.851 4.283C13.95 4.444 14 4.62 14 4.809L14 11.191C14 11.38 13.95 11.556 13.851 11.717ZM2 4.809L2 11.191L6.829 13.606C7.04 13.711 7.264 13.764 7.5 13.764C7.736 13.764 7.96 13.711 8.171 13.606L13 11.191L13 4.809L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L2 4.809Z" />
</svg>
);
}Vue: see /icons/hexagon.md
Svelte: see /icons/hexagon.md
HTML img: see /icons/hexagon.md
CSS: see /icons/hexagon.md
Data URL: see /icons/hexagon.md
Sprite: see /icons/hexagon.md
SwiftUI: see /icons/hexagon.md
Compose: see /icons/hexagon.md
Android XML: see /icons/hexagon.md
Flutter: see /icons/hexagon.md
Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.
With npm: import { HexagonIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- hexagon
- Tags
- hexagon, shape, polygon, six-sided, honeycomb, cell, geometry
- Category
- Shapes
- Component name
HexagonIcon- History
- added
- released in 0.1.0
- 20 px drawn, 24 px drawn
- Since
- version 0.1.0
More shapes icons
blob burst circle circle-pile circles cone cube cube-arrow-down cube-arrow-up cube-off cube-orthographic cube-pencil cube-plus cube-sparkle cuboid cylinder · all shapes icons
For agents
Metadata: /icons/hexagon.json · Markdown: /icons/hexagon.md · SVG: https://gentleface.com/svg/{style}/16/hexagon.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/hexagon.png