hat icon
hat from IconPark Outline by ByteDance · Outline · Clothes · Apache-2.0 Free for personal and commercial use.
- Name
- hat
- Set
- IconPark Outline
- Style
- Outline
- Category
- Clothes
- Viewbox
- 48×48
- License
- Apache 2.0
The same icon in other sets
More clothes icons from IconPark Outline
a-canebachelor-capbachelor-cap-onebachelor-cap-twobackpackbaseball-capbasketball-clothesbeltbootsbowbriefcasechef-hatchildren-capclothes-briefsclothes-cardiganclothes-crew-neckclothes-diapersclothes-glovesclothes-gloves-twoclothes-hoodieclothes-pantsclothes-pants-shortclothes-pants-sweatclothes-short-sleeve
Use the hat icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4"><path d="M9 16a8 8 0 0 1 8-8h14a8 8 0 0 1 8 8v16H9z"/><rect width="40" height="8" x="4" y="32" rx="2"/><path d="M9 22h8m14 0h8"/></g></svg>
React
import type { SVGProps } from "react";
export function IconParkOutlineHat(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="4"><path d="M9 16a8 8 0 0 1 8-8h14a8 8 0 0 1 8 8v16H9z"/><rect width="40" height="8" x="4" y="32" rx="2"/><path d="M9 22h8m14 0h8"/></g></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4"><path d="M9 16a8 8 0 0 1 8-8h14a8 8 0 0 1 8 8v16H9z"/><rect width="40" height="8" x="4" y="32" rx="2"/><path d="M9 22h8m14 0h8"/></g></svg> </template>
CSS
.icon-hat {
width: 24px;
height: 24px;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%3E%3Cpath%20d%3D%22M9%2016a8%208%200%200%201%208-8h14a8%208%200%200%201%208%208v16H9z%22%2F%3E%3Crect%20width%3D%2240%22%20height%3D%228%22%20x%3D%224%22%20y%3D%2232%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%2022h8m14%200h8%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%3E%3Cpath%20d%3D%22M9%2016a8%208%200%200%201%208-8h14a8%208%200%200%201%208%208v16H9z%22%2F%3E%3Crect%20width%3D%2240%22%20height%3D%228%22%20x%3D%224%22%20y%3D%2232%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%2022h8m14%200h8%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/icon-park-outline/hat.svg?color=%231a73e8&size=48