A baseball cap seen from the front, for headwear, team merchandise and apparel. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M2 15V19.5C2 20.3285 2.6716 21 3.5 21C3.7244 21 3.9459 20.9497 4.1483 20.8527C6.5991 19.6781 9.2822 19.0683 12 19.0683C14.7178 19.0683 17.4009 19.6781 19.8517 20.8527C20.0541 20.9497 20.2756 21 20.5 21C21.3284 21 22 20.3285 22 19.5V15M2 15V12C2 7.0294 6.4772 3 12 3M2 15C5.1686 13.6797 8.5673 13 12 13M12 3C17.5228 3 22 7.0294 22 12V15M12 3V13M22 15C18.8314 13.6797 15.4327 13 12 13" fill="none"/>
</svg>Also called
What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.
- baseball cap
- hat
- headwear
- sports cap
- peaked cap
- apparel
Related icons
The rest of the cap family first, then the Commerce shelf.
FAQ
Answered from cap's own facts: its shelf, the styles it was drawn in, its siblings and its dates.
- What is the cap icon for?
- A baseball cap seen from the front, for headwear, team merchandise and apparel. It is filed under Commerce in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as baseball cap, hat, headwear, sports cap, peaked cap and apparel, and the browser's search matches all of those.
- What styles does the cap icon come in?
- All four: stroke, two-tone, duotone and fill. They are drawn from the same geometry, so swapping style never moves anything.
- Is there a square or circle version of cap?
- No. cap is drawn as a bare glyph, and the set has no boxed variant of it.
- What other icons go with cap?
- badge-percent, bow-tie, box, briefcase, briefcase-arrow-down and circle-percent, and 12 more, all shown below. They are the Commerce shelf: nothing else in the set is named after cap.
- How do I import cap in React?
- <Cap /> is the component, and the style decides the module: stroke from "@keyline-icons/react", two-tone from "@keyline-icons/react/two-tone", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <Cap size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
- Where is the cap SVG?
- icons/stroke/cap.svg, icons/two-tone/cap.svg, icons/duotone/cap.svg and icons/fill/cap.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
- When was cap added to the set?
- Added 21 Nov 2026. It ships in v2.9.0, so an install at that version or later has it.
Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.