ICONYZ
English
Octagon icon from Tabler Icons

Octagon icon

tabler:octagon

The Octagon icon (tabler:octagon) is a free SVG icon from the Tabler Icons set by Paweł Kuna. It is drawn on a 24 × 24 grid. Tabler 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
Tabler Icons
Author
Paweł Kuna
License
MIT
Size
24 × 24
Tags
shape, geometric, math, 2d, building, government, geometry, form, figure, shapes
Download SVG

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="m12.802 2.165l5.575 2.389c.48.206.863.589 1.07 1.07l2.388 5.574c.22.512.22 1.092 0 1.604l-2.389 5.575c-.206.48-.589.863-1.07 1.07l-5.574 2.388c-.512.22-1.092.22-1.604 0l-5.575-2.389a2.04 2.04 0 0 1-1.07-1.07l-2.388-5.574a2.04 2.04 0 0 1 0-1.604l2.389-5.575c.206-.48.589-.863 1.07-1.07l5.574-2.388a2.04 2.04 0 0 1 1.604 0"/></svg>

How to use the Octagon icon

React

import { Icon } from "@iconify/react";

<Icon icon="tabler:octagon" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="tabler:octagon" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="tabler:octagon" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[tabler--octagon]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/tabler -->
<div class="i-tabler:octagon"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="tabler:octagon"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/tabler/octagon.svg" alt="Octagon icon" width="24" height="24">

Related icons in Tabler Icons

Octagon icon in other icon sets

Octagon icon FAQ

Is the Octagon icon free for commercial use?

Yes. Tabler Icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Octagon icon in React?

Install @iconify/react and render <Icon icon="tabler:octagon" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Octagon icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/tabler/octagon.svg" alt="Octagon icon">, or paste the SVG code inline to style it with CSS.

Browse all Tabler Icons →