react-feather
Version:
React component for Feather icons
45 lines (40 loc) • 961 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const Link = 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}
>
<path
d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"
fill="none"
stroke={color}
strokeLinecap="round"
strokeMiterlimit="10"
strokeWidth="2"
/>
<path
d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeMiterlimit="10"
strokeWidth="2"
/>
</svg>
);
};
Link.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Link.defaultProps = {
color: 'currentColor',
size: '24',
};
export default Link;