Files
lucide/packages/react/src/icons/x-circle.js
2020-06-28 15:27:24 +01:00

37 lines
921 B
JavaScript

import React, { forwardRef } from "react";
import PropTypes from "prop-types";
const XCircle = forwardRef(
({ color = "currentColor", size = 24, width = 2, ...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={width}
strokeLinecap="round"
strokeLinejoin="round"
{...rest}
>
<circle cx="12" cy="12" r="10"></circle>
<line x1="15" y1="9" x2="9" y2="15"></line>
<line x1="9" y1="9" x2="15" y2="15"></line>
</svg>
);
}
);
XCircle.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
XCircle.displayName = "XCircle";
export default XCircle;