Icons / alert-triangle alert-triangle AlertTriangle, one of the 856 Vela UI icons, in the General group: a 24px grid drawn in currentColor, so it takes the colour of the text around it. It installs on its own as @velaui/icon-alert-triangle.
Installation
pnpm npm yarn bun
pnpm dlx velaui add @velaui/icon-alert-triangleCopy npx shadcn@latest add @velaui/icon-alert-triangleCopy yarn dlx shadcn@latest add @velaui/icon-alert-triangleCopy bunx --bun shadcn@latest add @velaui/icon-alert-triangleCopy Usage
Copy // components/icons/alert-triangle.tsx
import AlertTriangle from "@/components/icons/alert-triangle"
<AlertTriangle className = "size-5 text-muted" /> In use In a button
Add event
In a sentence
Due Friday , or whenever the venue confirms.
In an input
As a badge
Scheduled
In an empty state
Source Copy import * as React from "react" ;
export interface AlertTriangleProps extends React.SVGProps<SVGSVGElement> {
size ?: number | string;
}
/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function AlertTriangle ({ size = 24, strokeWidth = 1, className, ref, ... props } : AlertTriangleProps) {
return (
<svg
ref = {ref}
width = {size}
height = {size}
viewBox = "0 0 24 24"
fill = "none"
strokeWidth = {strokeWidth}
className = {className}
{ ... props}
>
<path d = "M12 12.9V8.41447M12 16.2248V16.2642M17.6699 20H6.33007C4.7811 20 3.47392 18.9763 3.06265 17.5757C2.88709 16.9778 3.10281 16.3551 3.43276 15.8249L9.10269 5.60102C10.4311 3.46632 13.5689 3.46633 14.8973 5.60103L20.5672 15.8249C20.8972 16.3551 21.1129 16.9778 20.9373 17.5757C20.5261 18.9763 19.2189 20 17.6699 20Z" stroke = "currentColor" strokeLinecap = "round" strokeLinejoin = "round" />
</svg>
);
}
AlertTriangle.displayName = "AlertTriangle" ;
export default AlertTriangle;