Skip to content
Cuelark UI

Hover the icon or press Play. Suggested motion: shake. Pick another to preview it and update the animated code:

VS Code Icons · VscWarningCompact

Warning Compact icon

A free warning compact icon from VS Code Icons, 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
CC BY 4.0 license
Project
github.com
Install with shadcn
npx shadcn@latest add https://ui.cuelark.com/r/icons/vscode-codicons/warning-compact.json
components/icons/vscode-codicons-warning-compact.tsx
import * as React from "react";

/**
 * Warning Compact from VS Code Icons (https://github.com/microsoft/vscode-codicons), CC BY 4.0.
 * Via Cuelark UI: ui.cuelark.com/icons/vscode-codicons/warning-compact. Sized in em, colored by currentColor.
 */
export function VscWarningCompactIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      aria-hidden="true"
      viewBox="0 0 12 12"
      stroke="currentColor"
      fill="currentColor"
      strokeWidth="0"
      width="1em"
      height="1em"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M10.79 8.11L7.79 2.11C7.45 1.43 6.76 1 6 1C5.24 1 4.55 1.42 4.21 2.11L1.21 8.11C1.07 8.39 1 8.69 1 9C1 10.1 1.9 11 3 11H9C10.1 11 11 10.1 11 9C11 8.69 10.93 8.39 10.79 8.11ZM9 10H3C2.45 10 2 9.55 2 9C2 8.84 2.04 8.69 2.1 8.55L5.1 2.55C5.27 2.21 5.61 2 6 2C6.39 2 6.72 2.21 6.9 2.55L9.9 8.55C9.97 8.69 10 8.84 10 9C10 9.55 9.55 10 9 10ZM6.75 8.5C6.75 8.91 6.41 9.25 6 9.25C5.59 9.25 5.25 8.91 5.25 8.5C5.25 8.09 5.59 7.75 6 7.75C6.41 7.75 6.75 8.09 6.75 8.5ZM5.5 6.5V4C5.5 3.72 5.72 3.5 6 3.5C6.28 3.5 6.5 3.72 6.5 4V6.5C6.5 6.78 6.28 7 6 7C5.72 7 5.5 6.78 5.5 6.5Z"
      />
    </svg>
  );
}
With react-icons
import { VscWarningCompact } from "react-icons/vsc";

export function Example() {
  return <VscWarningCompact className="size-5" />;
}
warning-compact.svg
<svg
  viewBox="0 0 12 12"
  stroke="currentColor"
  fill="currentColor"
  stroke-width="0"
  width="1em"
  height="1em"
  xmlns="http://www.w3.org/2000/svg"
>
  <path
    d="M10.79 8.11L7.79 2.11C7.45 1.43 6.76 1 6 1C5.24 1 4.55 1.42 4.21 2.11L1.21 8.11C1.07 8.39 1 8.69 1 9C1 10.1 1.9 11 3 11H9C10.1 11 11 10.1 11 9C11 8.69 10.93 8.39 10.79 8.11ZM9 10H3C2.45 10 2 9.55 2 9C2 8.84 2.04 8.69 2.1 8.55L5.1 2.55C5.27 2.21 5.61 2 6 2C6.39 2 6.72 2.21 6.9 2.55L9.9 8.55C9.97 8.69 10 8.84 10 9C10 9.55 9.55 10 9 10ZM6.75 8.5C6.75 8.91 6.41 9.25 6 9.25C5.59 9.25 5.25 8.91 5.25 8.5C5.25 8.09 5.59 7.75 6 7.75C6.41 7.75 6.75 8.09 6.75 8.5ZM5.5 6.5V4C5.5 3.72 5.72 3.5 6 3.5C6.28 3.5 6.5 3.72 6.5 4V6.5C6.5 6.78 6.28 7 6 7C5.72 7 5.5 6.78 5.5 6.5Z"
  />
</svg>
Attribution
"Warning Compact" icon from VS Code Icons (https://github.com/microsoft/vscode-codicons), licensed under CC BY 4.0 license.

Related icons: alert, caution, error, danger