Hover the icon or press Play. Suggested motion: nudge-right. Pick another to preview it and update the animated code:
Exclamation Triangle icon
A free exclamation triangle icon from Heroicons 2, ready for React. Use it static or animated: both versions are below, copy-paste or one shadcn command away. Sized in em and colored by currentColor.
- License
- MIT license
- Project
- github.com
npx shadcn@latest add https://ui.cuelark.com/r/icons/heroicons-2/exclamation-triangle.jsonimport * as React from "react";
/**
* Exclamation Triangle from Heroicons 2 (https://github.com/tailwindlabs/heroicons), MIT.
* Via Cuelark UI: ui.cuelark.com/icons/heroicons-2/exclamation-triangle. Sized in em, colored by currentColor.
*/
export function HiExclamationTriangleIcon(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
aria-hidden="true"
viewBox="0 0 24 24"
aria-hidden="true"
stroke="currentColor"
fill="currentColor"
strokeWidth="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
d="M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"
clipRule="evenodd"
/>
</svg>
);
}import { HiExclamationTriangle } from "react-icons/hi2";
export function Example() {
return <HiExclamationTriangle className="size-5" />;
}<svg
viewBox="0 0 24 24"
aria-hidden="true"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"
clip-rule="evenodd"
/>
</svg>"Exclamation Triangle" icon from Heroicons 2 (https://github.com/tailwindlabs/heroicons), licensed under MIT license.Related icons: warning, alert, caution, error
- exclamation circle
- mini exclamation circle
- mini exclamation triangle
- mini shield exclamation
- outline exclamation circle
- outline exclamation triangle
- outline shield exclamation
- shield exclamation
- bell alert
- mini bell alert
- outline bell alert
- bell
- bell slash
- bell snooze
- bug ant
- mini bell
- mini bell slash
- mini bell snooze
- mini bug ant
- outline bell
- outline bell slash
- outline bell snooze
- outline bug ant