-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathalert-triangle.js
More file actions
33 lines (29 loc) · 884 Bytes
/
Copy pathalert-triangle.js
File metadata and controls
33 lines (29 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
const AlertTriangle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
stroke={color}
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
{...rest}
>
<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" />
<line x1="12" y1="9" x2="12" y2="13" />
<line x1="12" y1="17" x2="12.01" y2="17" />
</svg>
);
});
AlertTriangle.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
AlertTriangle.displayName = 'AlertTriangle';
export default AlertTriangle;