The Heroicons cake icon depicts a slice of cake, commonly used to represent celebrations, desserts, or special occasions in UI elements.
Common uses
- Birthday/anniversary notifications
- Dessert menu item
- Special offer badge
Use it in React
Install
npm i @heroicons/reactImport & render
import { CakeIcon } from '@heroicons/react/24/outline';
<CakeIcon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<CakeIcon className="size-6" />24/solid
<CakeIcon className="size-6" />20/solid
<CakeIcon className="size-6" />16/solid
<CakeIcon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- cakeslice of cakedessertbirthdaycelebration
FAQ
- What is the cake icon for?
- It's used for themes like birthdays, celebrations, or desserts.
- How do I use the cake icon in React?
- Import it using: import { CakeIcon } from '@heroicons/react/24/outline'
- What is the license for the cake icon?
- The Heroicons cake icon is available under the MIT license.
Related icons
The same idea in other libraries, and near matches in Heroicons.