From 5992da0a571c3334c33dffe215dfe4ba39245543 Mon Sep 17 00:00:00 2001 From: jrgarciadev Date: Mon, 22 Feb 2021 13:02:08 -0300 Subject: [PATCH] chore: add restProps to iconly component --- package.json | 2 +- src/lib/mapIcons.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fad21b3..ec0e2c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-iconly", - "version": "1.1.4", + "version": "1.1.5", "description": "React component for Iconly icons", "author": "jrgarciadev", "license": "MIT", diff --git a/src/lib/mapIcons.js b/src/lib/mapIcons.js index efeab2a..ce6495a 100644 --- a/src/lib/mapIcons.js +++ b/src/lib/mapIcons.js @@ -114,7 +114,8 @@ const Iconly = ({ set, size, name, - style + style, + ...props }) => { const Icon = icons[name] if (!Icon) { @@ -130,6 +131,7 @@ const Iconly = ({ set={set} size={size} style={style} + {...props} /> ) }