react-feather
Version:
React component for Feather icons
59 lines (54 loc) • 1.14 kB
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const Type = 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}
>
<polyline
points="4 7 4 4 20 4 20 7"
fill="none"
stroke={color}
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<line
x1="9"
y1="20"
x2="15"
y2="20"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<line
x1="12"
y1="4"
x2="12"
y2="20"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
</svg>
);
};
Type.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Type.defaultProps = {
color: 'currentColor',
size: '24',
};
export default Type;