Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

background image with styled components


const Content = styled.div`
    background-image: url(${props => props.img});
`;
<Content img={ImagePath} />
Source by github.com #
 
PREVIOUS NEXT
Tagged: #background #image #styled #components
ADD COMMENT
Topic
Name
7+2 =