Skip to content

Instantly share code, notes, and snippets.

@luizcieslak
Created May 11, 2020 13:54
Show Gist options
  • Save luizcieslak/3ae27b38a71e8f9f30c640ad392957bb to your computer and use it in GitHub Desktop.
Save luizcieslak/3ae27b38a71e8f9f30c640ad392957bb to your computer and use it in GitHub Desktop.
Title with line after
const Title = styled.p`
position: relative;
&:after {
content: '';
position: absolute;
bottom: -10px;
left: 0;
width: 50px;
height: 5px;
background: ${props => props.theme.colors.brand['500']};
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment