Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to pass props in gatsby link using styledcomponent

import { Link } from 'gatsby';

const StyledLink = styled(props => <Link {...props} />)`
  color: aqua;
`;

// ...

<StyledLink to="/">
  Gatsby
</StyledLink>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #props #gatsby #link #styledcomponent
ADD COMMENT
Topic
Name
6+1 =