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

@@ -2,7 +2,7 @@ import React, { forwardRef } from "react";
import PropTypes from "prop-types";
const Unlock = forwardRef(
({ color = "currentColor", size = 24, ...rest }, ref) => {
({ color = "currentColor", size = 24, width = 2, ...rest }, ref) => {
return (
<svg
ref={ref}
@@ -12,7 +12,7 @@ const Unlock = forwardRef(
viewBox="0 0 24 24"
fill="none"
stroke={color}
strokeWidth="2"
strokeWidth={width}
strokeLinecap="round"
strokeLinejoin="round"
{...rest}
@@ -27,6 +27,7 @@ const Unlock = forwardRef(
Unlock.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Unlock.displayName = "Unlock";