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

39 lines
1.1 KiB
JavaScript

import React, { forwardRef } from "react";
import PropTypes from "prop-types";
const Codepen = 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}
>
<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon>
<line x1="12" y1="22" x2="12" y2="15.5"></line>
<polyline points="22 8.5 12 15.5 2 8.5"></polyline>
<polyline points="2 15.5 12 8.5 22 15.5"></polyline>
<line x1="12" y1="2" x2="12" y2="8.5"></line>
</svg>
);
}
);
Codepen.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Codepen.displayName = "Codepen";
export default Codepen;