forwardAs
Forwarding for the as
prop in styled-components a la React.forwardRef
.
import styled from 'styled-components';import forwardAs from 'styled-forward-as'; const Button = styledbutton` /* styles */`; const PrefixButton = ` /* styles */`;