Caution
The et-caution icon represents a caution or warning sign, commonly used to indicate potential danger, errors, or safety precautions.
Exports at 26 × 24 px
Code
Caution in your framework
In any framework. Customize it above, and the code follows.
export const CautionIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="24" viewBox="0 0 35 32" {...props}>
<g fill="currentColor"><path d="M21.799 2.954C20.694 1.05 19.19 0 17.564 0s-3.131 1.05-4.236 2.954L1.059 24.087c-1.12 1.947-1.24 3.969-.33 5.546c.866 1.5 2.565 2.363 4.664 2.367h24.342c2.102-.004 3.804-.864 4.667-2.361c.905-1.567.783-3.581-.335-5.525zm11.738 26.185c-.681 1.18-2.067 1.858-3.804 1.861H5.394c-1.731-.003-3.115-.684-3.799-1.867c-.727-1.26-.606-2.917.33-4.546L14.193 3.456C15.112 1.872 16.309 1 17.564 1s2.452.872 3.37 2.456l12.268 21.157c.935 1.626 1.057 3.276.335 4.526"/><path d="M17.564 20a.5.5 0 0 0 .5-.5v-10a.5.5 0 0 0-1 0v10a.5.5 0 0 0 .5.5m-.064 2.5c-1.103 0-2 .897-2 2s.897 2 2 2s2-.897 2-2s-.897-2-2-2m0 3a1.001 1.001 0 0 1 0-2a1.001 1.001 0 0 1 0 2"/></g>
</svg>
);Other libraries
Caution in 5 more libraries
Each library draws it its own way. Open one to compare.
Elegant
More like it
Icons that share its tags, then the ones next to it in Elegant, in the same style.
Search Elegant
Skip the copy and paste. With Pro, your AI agent finds and installs any Elegant icon from a prompt.
Get ProTags
Browse by tag
Caution is tagged warning, alert, safety and 2 more. Related tags follow; each opens its icons from every library.
Pricing
Elegant MCP, with Pro
Ask for Caution or any of 100 Elegant 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 Caution icon means and where it's used, then how to install, style, label and license it.
The et-caution icon represents a caution or warning sign, commonly used to indicate potential danger, errors, or safety precautions. This icon is often associated with alerting users to potential risks or hazards. The caution icon is widely recognized in digital interfaces as a way to provide critical feedback or warnings.
In various software applications, the caution icon appears in contexts such as error messages, warning notifications, or safety guidelines. For example, in software applications like Microsoft Windows, a caution icon might be used to indicate potential security risks or system errors.
From a UX perspective, the caution icon effectively communicates to users that they should be aware of potential risks or hazards. It helps users understand that they need to take precautions or take corrective action. When used consistently across an interface, the caution icon becomes a clear indicator of critical feedback or warnings.
Caution is one of 100 icons in Elegant, made by Kenny Sing and released under GPL 3.0. It is drawn on a 35 × 32 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 CautionIcon to components/icons/et-caution.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 CautionIcon 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 Caution icon, or any of 100 Elegant icons, and install it from a prompt.
It's drawn in currentColor, so it takes the text color wherever you use it: a class like text-primary recolors it. To bake a color in, set one in Customize before you copy.
Set width and height on the component, or a class like size-6. It's drawn on a 35 × 32 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It follows the text color, so with text-foreground (or any theme token) it changes with your light and dark themes. 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="Caution", so screen readers say what it does.
Yes. CautionIcon passes every SVG prop to the svg element, so <CautionIcon 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.
GPL 3.0 is copyleft: what you ship with the icons may have to use the same license. Check it fits your project first. The full terms are in the license, linked on this page.
Keep the GPL 3.0 notice with the icons, and credit Kenny Sing as it asks. GPL 3.0 is copyleft, so what you ship with them may have to use the same license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
5 other libraries draw an icon called Caution. 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 warning, alert, safety, error and danger. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Caution in another set.
4.9 out of 5 from 150+ developers
Install Caution from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro