react-feather
Version:
React component for Feather icons
56 lines (51 loc) • 1.13 kB
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const Share = 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="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"
fill="none"
stroke={color}
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<polyline
points="16 6 12 2 8 6"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<line
x1="12"
y1="2"
x2="12"
y2="15"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
</svg>
);
};
Share.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Share.defaultProps = {
color: 'currentColor',
size: '24',
};
export default Share;