diff --git a/packages/vx-text/src/Text.js b/packages/vx-text/src/Text.js index 2abf97bc4..ba8c78433 100644 --- a/packages/vx-text/src/Text.js +++ b/packages/vx-text/src/Text.js @@ -82,6 +82,7 @@ class Text extends Component { angle, lineHeight, capHeight, + innerRef, ...textProps } = this.props; const { wordsByLines } = this.state; @@ -121,7 +122,13 @@ class Text extends Component { } return ( - + {wordsByLines.map((line, index) => ( @@ -151,7 +158,8 @@ Text.propTypes = { angle: PropTypes.number, textAnchor: PropTypes.oneOf(['start', 'middle', 'end', 'inherit']), verticalAnchor: PropTypes.oneOf(['start', 'middle', 'end']), - style: PropTypes.object + style: PropTypes.object, + innerRef: PropTypes.func }; export default Text;