Top Hat icon
dinkie-icons:top-hat
The Top Hat icon (dinkie-icons:top-hat) is a free SVG icon from the Dinkie Icons set by atelierAnchor. It is drawn on a 12 × 12 grid. Dinkie 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
- Dinkie Icons
- Author
- atelierAnchor
- License
- MIT
- Size
- 12 × 12
- Tags
- tophat
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="currentColor" d="M8 8H3v1h5Zm0 0h1V6h1V5H9V3H8Zm-7 2h1V9H1ZM0 9h1V6H0Zm2 2h7v-1H2Zm0-3h1V3H2v2H1v1h1Zm7 2h1V9H9ZM4 5h3V4H4Zm6 4h1V6h-1ZM3 3h5V2H3Zm0 0"/></svg>How to use the Top Hat icon
React
import { Icon } from "@iconify/react";
<Icon icon="dinkie-icons:top-hat" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="dinkie-icons:top-hat" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="dinkie-icons:top-hat" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[dinkie-icons--top-hat]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/dinkie-icons -->
<div class="i-dinkie-icons:top-hat"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="dinkie-icons:top-hat"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/dinkie-icons/top-hat.svg" alt="Top Hat icon" width="24" height="24">Related icons in Dinkie Icons
Top Hat icon in other icon sets
Top Hat icon FAQ
Is the Top Hat icon free for commercial use?
Yes. Dinkie Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Top Hat icon in React?
Install @iconify/react and render <Icon icon="dinkie-icons:top-hat" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Top Hat icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/dinkie-icons/top-hat.svg" alt="Top Hat icon">, or paste the SVG code inline to style it with CSS.