Closed ikornienko closed 4 years ago
Some libraries rely on proper ref forwarding (e.g. see tippy.js docs mentioning it). Unfortunately right now none of the icon components forward ref, which can be improved with something like
import React, { forwardRef } from 'react'; const Activity = forwardRef((props, ref) => { const { color, size, ...otherProps } = props; return ( <svg xmlns="http://www.w3.org/2000/svg" ... ref={ref} > ...
Related: #60
Feature added.
Some libraries rely on proper ref forwarding (e.g. see tippy.js docs mentioning it). Unfortunately right now none of the icon components forward ref, which can be improved with something like