feat(react): Ability to customise strokeWidth (#38)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user