ICONYZ
English
Fence icon from Huge Icons

Fence icon

hugeicons:fence

The Fence icon (hugeicons:fence) is a free SVG icon from the Huge Icons set by Hugeicons. It is drawn on a 24 × 24 grid. Huge 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
Huge Icons
Author
Hugeicons
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"><path stroke-linecap="square" d="m21.4 4.2l-.6-.8a1 1 0 0 0-1.6 0l-.6.8c-.297.396-.446.595-.523.826S18 5.504 18 6v13c0 .465 0 .698.051.888a1.5 1.5 0 0 0 1.06 1.06c.191.052.424.052.889.052s.698 0 .888-.051a1.5 1.5 0 0 0 1.06-1.06C22 19.697 22 19.464 22 19V6c0-.496 0-.743-.077-.974s-.226-.43-.523-.826Zm-8 0l-.6-.8a1 1 0 0 0-1.6 0l-.6.8c-.297.396-.446.595-.523.826S10 5.504 10 6v13c0 .465 0 .698.051.888a1.5 1.5 0 0 0 1.06 1.06c.191.052.424.052.889.052s.697 0 .888-.051a1.5 1.5 0 0 0 1.06-1.06C14 19.697 14 19.464 14 19V6c0-.496 0-.743-.077-.974s-.226-.43-.523-.826Zm-8 0l-.6-.8a1 1 0 0 0-1.6 0l-.6.8c-.297.396-.446.595-.523.826S2 5.504 2 6v13c0 .465 0 .698.051.888a1.5 1.5 0 0 0 1.06 1.06C3.304 21 3.536 21 4 21s.697 0 .888-.051a1.5 1.5 0 0 0 1.06-1.06C6 19.697 6 19.464 6 19V6c0-.496 0-.743-.077-.974s-.226-.43-.523-.826Z"/><path stroke-linecap="round" d="M10 8H6v10h4zm8 0h-4v10h4z"/></g></svg>

How to use the Fence icon

React

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

<Icon icon="hugeicons:fence" width="24" />

Vue

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

<template>
  <Icon icon="hugeicons:fence" width="24" />
</template>

Svelte

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

<Icon icon="hugeicons:fence" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="hugeicons:fence"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/hugeicons/fence.svg" alt="Fence icon" width="24" height="24">

Fence icon in other icon sets

Fence icon FAQ

Is the Fence icon free for commercial use?

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

How do I use the Fence icon in React?

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

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

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

Browse all Huge Icons →