The Heroicons cube icon depicts a three-dimensional cube, commonly used to represent concepts like 3D models, products, or abstract geometric shapes in UI design.
Common uses
- Displaying a 3D product preview
- Representing a generic geometric object
- Indicating a 'box' or 'container' element
Use it in React
Install
npm i @heroicons/reactImport & render
import { CubeIcon } from '@heroicons/react/24/outline';
<CubeIcon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<CubeIcon className="size-6" />24/solid
<CubeIcon className="size-6" />20/solid
<CubeIcon className="size-6" />16/solid
<CubeIcon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- cube3dboxshapegeometry
FAQ
- What is the cube icon used for?
- It's typically used to represent 3D objects, products, or abstract geometric shapes within a user interface.
- How do I use the cube icon in React?
- You can import it using `import { CubeIcon } from '@heroicons/react/24/outline'` and then use it as a React component.
- What is the license for the Heroicons cube icon?
- The Heroicons library, including the cube icon, is available under the MIT license.
Related icons
The same idea in other libraries, and near matches in Heroicons.
Looking for something else? Search Heroicons and 4 more libraries by description →
The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →