Barn icon
boxicons:barn
The Barn icon (boxicons:barn) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="m19.5 6.13l-7-4a.98.98 0 0 0-.99 0l-7 4c-.15.08-.27.21-.36.35l-3 5l1.71 1.03l.14-.24v8.72c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-8.72l.14.24l1.71-1.03l-3-5a.93.93 0 0 0-.36-.35ZM11.24 17.5L9 19.46v-3.92zm.76.66L14.1 20H9.9zm.76-.66L15 15.54v3.92zm-.76-.66L9.9 15h4.2zM19 9v11h-2v-6c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v6H5V9h-.03l.76-1.26l6.28-3.59l6.28 3.59l.76 1.26h-.03Z"/><path fill="currentColor" d="M12 7a2 2 0 1 0 0 4a2 2 0 1 0 0-4"/></svg>How to use the Barn icon
React
import { Icon } from "@iconify/react";
<Icon icon="boxicons:barn" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="boxicons:barn" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="boxicons:barn" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--barn]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:barn"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="boxicons:barn"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/boxicons/barn.svg" alt="Barn icon" width="24" height="24">Related icons in Boxicons
Barn icon in other icon sets
Barn icon FAQ
Is the Barn icon free for commercial use?
Yes. Boxicons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Barn icon in React?
Install @iconify/react and render <Icon icon="boxicons:barn" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Barn icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/boxicons/barn.svg" alt="Barn icon">, or paste the SVG code inline to style it with CSS.