Pre Commit
The pre-commit icon represents a software development tool that helps automate tasks before code is committed to a repository.
Exports at 24 × 24 px
Code
Pre Commit in your framework
In any framework. Customize it above, and the code follows.
export const PreCommitIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 2000 2000" fill="none" stroke="currentColor" {...props}>
<defs><clipPath id="SVGfGwZpcDD" clipPathUnits="userSpaceOnUse"><path d="M0 1500h1500V0H0z"/></clipPath></defs><g clipPath="url(#SVGfGwZpcDD)" transform="matrix(1.33333 0 0 -1.33333 0 2000)"><path fill="#ffb74d" d="M665.147 130.852L130.853 665.147c-46.863 46.862-46.863 122.842 0 169.705l534.294 534.295c46.863 46.864 122.843 46.864 169.706 0l534.294-534.294c46.863-46.863 46.863-122.843 0-169.706L834.853 130.852c-46.863-46.862-122.843-46.862-169.706 0"/><path fill="none" stroke="#212121" strokeMiterlimit="10" strokeWidth="34" d="M687.774 233.226L233.225 687.775c-34.366 34.366-34.366 90.085 0 124.45l454.55 454.55c34.365 34.366 90.084 34.366 124.45 0l454.55-454.55c34.365-34.365 34.365-90.084 0-124.45l-454.55-454.55c-34.366-34.365-90.085-34.365-124.45 0z"/><path fill="#212121" d="M784.672 763.286c12.096 0 23.74.893 34.943 2.688c11.194 1.785 21.053 5.26 29.569 10.416c8.504 5.145 15.34 12.432 20.496 21.84c5.144 9.408 7.726 21.724 7.726 36.96c0 15.225-2.582 27.552-7.726 36.96c-5.156 9.408-11.992 16.684-20.496 21.84c-8.516 5.145-18.375 8.62-29.57 10.416c-11.202 1.785-22.846 2.688-34.942 2.688h-81.985V763.286zm28.895 225.792q45.013 0 76.609-13.104c21.05-8.736 38.187-20.275 51.406-34.608c13.209-14.343 22.85-30.692 28.897-49.056c6.048-18.375 9.072-37.412 9.072-57.12c0-19.268-3.024-38.2-9.072-56.784c-6.047-18.596-15.688-35.06-28.897-49.392c-13.22-14.343-30.355-25.872-51.406-34.608q-31.596-13.104-76.61-13.104h-110.88V509.27H597.184v479.808z"/></g>
</svg>
);Material Icon Theme
More like it
Icons that share its tags, in the same style.
Search Material Icon Theme
Skip the copy and paste. With Pro, your AI agent finds and installs any Material Icon Theme icon from a prompt.
Get ProTags
Browse by tag
Pre Commit is tagged development, control, tool and 3 more. Related tags follow; each opens its icons from every library.
Pricing
Material Icon Theme MCP, with Pro
Ask for Pre Commit or any of 1,136 Material Icon Theme 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 Pre Commit icon means and where it's used, then how to install, style, label and license it.
The pre-commit icon represents a software development tool that helps automate tasks before code is committed to a repository. It is commonly used in software development workflows to ensure code quality and consistency.
Pre-commit hooks are used in version control systems like Git to run automated checks on code changes before they are committed. This helps catch errors early and ensures that code meets certain standards.
From a UX perspective, the pre-commit icon communicates a sense of automation and quality control. When users see this icon, they understand that they are working with a tool that helps them maintain high standards in their code.
Pre Commit is one of 1,136 icons in Material Icon Theme, made by Material Extensions and released under MIT. It is drawn on a 2000 × 2000 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 PreCommitIcon to components/icons/material-icon-theme-pre-commit.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 PreCommitIcon 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 Pre Commit icon, or any of 1,136 Material Icon Theme 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 2000 × 2000 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="Pre Commit", so screen readers say what it does.
Yes. PreCommitIcon passes every SVG prop to the svg element, so <PreCommitIcon 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. MIT allows commercial use; keep the license notice when you ship the icons' source files. The full terms are in the license, linked on this page.
No visible credit is required: MIT only asks that you keep the license notice if you ship the icons' source files. Icons installed with the shadcn CLI already start with a comment naming Material Icon Theme, Material Extensions and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
Its tags are development, control, tool, workflow, automation and version. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Pre Commit in another set.
4.9 out of 5 from 150+ developers
Install Pre Commit from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro