react-feather
Version:
React component for Feather icons
53 lines (48 loc) • 1 kB
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const CreditCard = 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="1"
y="4"
width="22"
height="16"
rx="2"
ry="2"
fill="none"
stroke={color}
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<line
x1="1"
y1="10"
x2="23"
y2="10"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
</svg>
);
};
CreditCard.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
CreditCard.defaultProps = {
color: 'currentColor',
size: '24',
};
export default CreditCard;