Answers for "how to pass props in gatsby link using styledcomponent"

2

gatsby link active

<Link to="/"  activeClassName="link__active" />

<style>
.link__active {
      color: #b100c2;
    }
</style>
Posted by: Guest on June-29-2020
1

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>
Posted by: Guest on July-14-2020

Code answers related to "how to pass props in gatsby link using styledcomponent"

Code answers related to "Javascript"

Browse Popular Code Answers by Language