-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathbattery.js
More file actions
32 lines (28 loc) · 761 Bytes
/
Copy pathbattery.js
File metadata and controls
32 lines (28 loc) · 761 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
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
const Battery = 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}
>
<rect x="1" y="6" width="18" height="12" rx="2" ry="2" />
<line x1="23" y1="13" x2="23" y2="11" />
</svg>
);
});
Battery.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Battery.displayName = 'Battery';
export default Battery;