react-feather
Version:
React component for Feather icons
37 lines (32 loc) • 726 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const Shield = 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="M12 22s8-4 8-10V4l-8-2-8 2v8c0 6 8 10 8 10z"
fill="none"
stroke={color}
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
</svg>
);
};
Shield.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Shield.defaultProps = {
color: 'currentColor',
size: '24',
};
export default Shield;