polygon icon
polygon from BoxIcons v2 by Boxicons · Regular · MIT Free for personal and commercial use.
- Name
- polygon
- Set
- BoxIcons v2
- Style
- Regular
- Viewbox
- 24×24
- License
- MIT
- Aliases
- bx-polygon
The same icon in other sets
Use the polygon icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M16.707 2.293A1 1 0 0 0 16 2H8a1 1 0 0 0-.707.293l-5 5A1 1 0 0 0 2 8v8c0 .266.105.52.293.707l5 5A1 1 0 0 0 8 22h8c.266 0 .52-.105.707-.293l5-5A1 1 0 0 0 22 16V8a1 1 0 0 0-.293-.707zM20 15.586L15.586 20H8.414L4 15.586V8.414L8.414 4h7.172L20 8.414z"/></svg>
React
import type { SVGProps } from "react";
export function BxPolygon(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M16.707 2.293A1 1 0 0 0 16 2H8a1 1 0 0 0-.707.293l-5 5A1 1 0 0 0 2 8v8c0 .266.105.52.293.707l5 5A1 1 0 0 0 8 22h8c.266 0 .52-.105.707-.293l5-5A1 1 0 0 0 22 16V8a1 1 0 0 0-.293-.707zM20 15.586L15.586 20H8.414L4 15.586V8.414L8.414 4h7.172L20 8.414z"/></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M16.707 2.293A1 1 0 0 0 16 2H8a1 1 0 0 0-.707.293l-5 5A1 1 0 0 0 2 8v8c0 .266.105.52.293.707l5 5A1 1 0 0 0 8 22h8c.266 0 .52-.105.707-.293l5-5A1 1 0 0 0 22 16V8a1 1 0 0 0-.293-.707zM20 15.586L15.586 20H8.414L4 15.586V8.414L8.414 4h7.172L20 8.414z"/></svg> </template>
CSS
.icon-polygon {
width: 24px;
height: 24px;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M16.707%202.293A1%201%200%200%200%2016%202H8a1%201%200%200%200-.707.293l-5%205A1%201%200%200%200%202%208v8c0%20.266.105.52.293.707l5%205A1%201%200%200%200%208%2022h8c.266%200%20.52-.105.707-.293l5-5A1%201%200%200%200%2022%2016V8a1%201%200%200%200-.293-.707zM20%2015.586L15.586%2020H8.414L4%2015.586V8.414L8.414%204h7.172L20%208.414z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M16.707%202.293A1%201%200%200%200%2016%202H8a1%201%200%200%200-.707.293l-5%205A1%201%200%200%200%202%208v8c0%20.266.105.52.293.707l5%205A1%201%200%200%200%208%2022h8c.266%200%20.52-.105.707-.293l5-5A1%201%200%200%200%2022%2016V8a1%201%200%200%200-.293-.707zM20%2015.586L15.586%2020H8.414L4%2015.586V8.414L8.414%204h7.172L20%208.414z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/bx/polygon.svg?color=%231a73e8&size=48