From c46f90a6ddb65b6c64622d29f59e4793d45dd2e9 Mon Sep 17 00:00:00 2001 From: adanielyan Date: Tue, 1 May 2018 16:41:58 -0400 Subject: [PATCH] Add stroke to tag through props --- src/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.js b/src/index.js index a99713c..f559658 100644 --- a/src/index.js +++ b/src/index.js @@ -33,6 +33,7 @@ class SVGInline extends Component { component, svg, fill, + stroke, width, accessibilityLabel, accessibilityDesc, @@ -87,6 +88,11 @@ class SVGInline extends Component { ? ` fill="${ fill }"` : "" ) + + ( + stroke + ? ` stroke="${ stroke }"` + : "" + ) + ( width || height ? " style=\"" + @@ -138,6 +144,7 @@ SVGInline.propTypes = { ]), svg: PropTypes.string.isRequired, fill: PropTypes.string, + stroke: PropTypes.string, cleanup: PropTypes.oneOfType([ PropTypes.bool, PropTypes.array,