react-lineto icon indicating copy to clipboard operation
react-lineto copied to clipboard

Forward props to underlying div element

Open TomPlum opened this issue 4 years ago • 0 comments

I'm wanting to test that a line is drawn under a given scenario with React Testing Library and it seems "data-testid" is the only attribute I could use to select it. However, passing one to the <LineTo /> component doesn't seem to make it to the DOM.

It would be nice if we could forward and spread any additional props passed in to the underlying <div /> element that is the line.

TomPlum avatar Jul 28 '21 19:07 TomPlum