Castle icon
andrsrxn:castle
The Castle icon (andrsrxn:castle) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/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
- andrsrxn/icons
- Author
- Andrés Raxón
- License
- MIT
- Size
- 24 × 24
- Category
- Buildings
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><path fill="currentColor" d="m16.2 3.98l-4.8-2.37v4.6zm4.7 12.27l-1.24-5.62l-.01-1.13a1.2 1.2 0 0 0-1.2-1.21H17.3c-.46 0-.88.27-1.08.7l-.36.8c-.2.43-.62.7-1.08.7H9.1c-.47 0-.9-.28-1.1-.72L7.69 9a1.2 1.2 0 0 0-1.09-.72H5.4A1.2 1.2 0 0 0 4.2 9.5v1.13l-1.25 5.62c-.61 2.74-.91 4.1-.2 5.02s3.6.91 6.35.91v-4.9L12 15.8l3.03 1.48v4.9c2.75 0 5.36 0 6.07-.91c.72-.91.41-2.28-.2-5.02" opacity=".2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11.35 1.8v8.41m.07-8.45l1.11.33c2.65.79 3.97 1.18 3.97 1.93s-1.33 1.13-3.98 1.9l-1.1.33m3.34 16h-5.7c-3.42 0-5.12 0-6.02-1.11s-.56-2.78.14-6.12l.88-4.2l.04-.2v-.7c0-.95 0-1.42.3-1.71c.29-.3.76-.3 1.7-.3h.24c.6 0 .91 0 1.15.16c.25.15.38.42.65.97l.21.46c.27.54.4.82.65.97c.24.15.55.15 1.16.15h3.31c.56 0 .84 0 1.07-.13s.38-.37.66-.86l.35-.6c.29-.5.43-.74.66-.87s.51-.13 1.07-.13h.32c.94 0 1.41 0 1.7.3c.3.28.3.76.3 1.7v.59l.05.23l.95 4.02c.8 3.4 1.2 5.1.3 6.24s-2.65 1.14-6.14 1.14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15.05 22.18V19c0-.97 0-1.45-.17-1.84a2 2 0 0 0-1.03-1.03c-.39-.17-.87-.17-1.84-.17s-1.46 0-1.85.17a2 2 0 0 0-1.03 1.03c-.17.39-.17.87-.17 1.84v3.18"/></g></svg>How to use the Castle icon
React
import { Icon } from "@iconify/react";
<Icon icon="andrsrxn:castle" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="andrsrxn:castle" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="andrsrxn:castle" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--castle]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:castle"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="andrsrxn:castle"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/andrsrxn/castle.svg" alt="Castle icon" width="24" height="24">Castle icon in other icon sets
Castle icon FAQ
Is the Castle icon free for commercial use?
Yes. andrsrxn/icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Castle icon in React?
Install @iconify/react and render <Icon icon="andrsrxn:castle" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Castle icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/andrsrxn/castle.svg" alt="Castle icon">, or paste the SVG code inline to style it with CSS.