reactjs – How can I make a background image repeat using React gatsby-background-image?

reactjs – How can I make a background image repeat using React gatsby-background-image?

Just add the style object as shown in the Styling & Passed Through Styles section.

  <BackgroundImage fluid={backgroundImage.node.childImageSharp.fluid} 
                   style={{ backgroundRepeat: repeat, backgroundSize: 200 }}>
      {children}
    </BackgroundImage>

reactjs – How can I make a background image repeat using React gatsby-background-image?

Leave a Reply

Your email address will not be published.