Rock
The rock icon represents a geological formation or stone used in construction and architecture.
Exports at 24 × 24 px
Code
Rock in your framework
In any framework. Customize it above, and the code follows.
export const RockIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 72 72" fill="none" stroke="currentColor" {...props}>
<path fill="#d0cfce" d="M55.785 34.99a1 1 0 0 1 .106 1.041l-3.895 8.063a1 1 0 0 1-.706.546l-10.798 2.138a1 1 0 0 1-.794-.18L16.214 29.02a1 1 0 0 1-.176-1.432l2.438-2.997a1 1 0 0 1 .326-.262l18.305-9.222a1 1 0 0 1 .658-.085l3.819.807a1 1 0 0 1 .637.442l2.673 4.144l1.62 2.49Z"/><path fill="#3f3f3f" d="M26.692 56h20.096l-6.471-10.181l-23.374-17.6l-1.129 4.827z"/><path fill="#9b9b9a" d="m54.78 36.031l1.348 11.513L54.469 56h-7.681l-6.471-10.181l10.622-1.879z"/><g fill="none" stroke="#000" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2"><path d="m45.797 23.608l9.193 11.989l1.138 11.642L54.469 56H26.692L16 32.86l.813-4.641l2.439-2.997L37.558 16l3.819.807l2.643 4.11l-5.012 3.353"/><path d="m47.359 56l-7.061-10.203l-23.485-17.578m38.177 7.378l-3.895 8.062l-10.797 2.138"/></g>
</svg>
);Other libraries
Rock in 3 more libraries
Each library draws it its own way. Open one to compare.
OpenMoji
More like it
Icons that share its tags, in the same style.
Search OpenMoji
Skip the copy and paste. With Pro, your AI agent finds and installs any OpenMoji icon from a prompt.
Get ProTags
Browse by tag
Rock is tagged nature, construction, geology and 2 more. Related tags follow; each opens its icons from every library.
Pricing
OpenMoji MCP, with Pro
Ask for Rock or any of 4,481 OpenMoji icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the Rock icon means and where it's used, then how to install, style, label and license it.
The rock icon represents a geological formation or stone used in construction and architecture. It originates from geology and symbolizes the natural environment.
In real-world applications, this icon appears in software related to geology, mining, and construction. For example, it might be used in geological mapping software, mining simulation tools, or architectural design platforms.
From a UX perspective, the rock icon communicates a sense of solidity and stability. It helps users quickly identify geological features or navigate to construction-related content, facilitating a seamless user experience.
Rock is one of 4,481 icons in OpenMoji, made by OpenMoji and released under CC BY-SA 4.0. It is drawn on a 72 × 72 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds RockIcon to components/icons/openmoji-rock.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed RockIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Rock icon, or any of 4,481 OpenMoji icons, and install it from a prompt.
It's multicolor, so it keeps its own colors.
Set width and height on the component, or a class like size-6. It's drawn on a 72 × 72 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It keeps its own colors in light and dark mode, so check it against both backgrounds. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Rock", so screen readers say what it does.
Yes. RockIcon passes every SVG prop to the svg element, so <RockIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes, with conditions: CC BY-SA 4.0 asks you to credit the author (OpenMoji), and icons you change must use the same license. The full terms are in the license, linked on this page.
Yes. CC BY-SA 4.0 asks you to credit OpenMoji, and icons you change must be shared under the same license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
3 other libraries draw an icon called Rock. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are nature, construction, geology, mining and stone. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Rock in another set.
OpenMoji draws many icons in several styles: Light next to the default. Open the library and pick a style above the grid to see Rock's siblings in it.
4.9 out of 5 from 150+ developers
Install Rock from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro