react-feather
Version:
React component for Feather icons
50 lines (45 loc) • 983 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const Copy = props => {
const { color, size, ...otherProps } = props;
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
{...otherProps}
>
<rect
x="9"
y="9"
width="13"
height="13"
rx="2"
ry="2"
fill="none"
stroke={color}
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<path
d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
</svg>
);
};
Copy.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Copy.defaultProps = {
color: 'currentColor',
size: '24',
};
export default Copy;