feat(react): Ability to customise strokeWidth (#38)

This commit is contained in:
John Letey
2020-06-28 15:27:24 +01:00
committed by GitHub
parent fc76ff2687
commit 3624f449f0
308 changed files with 1594 additions and 621 deletions

View File

@@ -0,0 +1,35 @@
import React, { forwardRef } from "react";
import PropTypes from "prop-types";
const Contrast = forwardRef(
({ color = "currentColor", size = 24, width = 2, ...rest }, ref) => {
return (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
stroke={color}
strokeWidth={width}
strokeLinecap="round"
strokeLinejoin="round"
{...rest}
>
<circle cx="12" cy="12" r="10"></circle>
<path d="M12 18a6 6 0 000-12v12z"></path>
</svg>
);
}
);
Contrast.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Contrast.displayName = "Contrast";
export default Contrast;