feat: Add react package (#4)
* chore: Organise * feat: Add `react` package * refactor: Remove unneeded char
This commit is contained in:
37
packages/react/src/icons/codepen.js
Normal file
37
packages/react/src/icons/codepen.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import React, { forwardRef } from "react";
|
||||
import PropTypes from "prop-types";
|
||||
|
||||
const Codepen = forwardRef(
|
||||
({ color = "currentColor", size = 24, ...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}
|
||||
>
|
||||
<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]),
|
||||
};
|
||||
|
||||
Codepen.displayName = "Codepen";
|
||||
|
||||
export default Codepen;
|
||||
Reference in New Issue
Block a user