0
Q:

how to pass props in gatsby link using styledcomponent

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

<style>
.link__active {
      color: #b100c2;
    }
</style>
1
import { Link } from 'gatsby';

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

// ...

<StyledLink to="/">
  Gatsby
</StyledLink>
0

New to Communities?

Join the community