From d0bbd7ade59041f97cc0f8791d462b0b91a606f4 Mon Sep 17 00:00:00 2001 From: illiteratewriter Date: Tue, 26 Jun 2018 01:29:16 +0530 Subject: [PATCH] feat(Card) : add innerRef to Card (#1082) (#1093) --- src/Card.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Card.js b/src/Card.js index 2f8c31e8d..ef585b01d 100644 --- a/src/Card.js +++ b/src/Card.js @@ -12,6 +12,11 @@ const propTypes = { outline: PropTypes.bool, className: PropTypes.string, cssModule: PropTypes.object, + innerRef: PropTypes.oneOfType([ + PropTypes.object, + PropTypes.string, + PropTypes.func, + ]), }; const defaultProps = { @@ -28,6 +33,7 @@ const Card = (props) => { inverse, outline, tag: Tag, + innerRef, ...attributes } = props; const classes = mapToCssModules(classNames( @@ -39,7 +45,7 @@ const Card = (props) => { ), cssModule); return ( - + ); };