Skip to content

Instantly share code, notes, and snippets.

@jonasantonelli
Last active July 12, 2021 23:37
Show Gist options
  • Save jonasantonelli/721829bb6c78b6a911a5d28d913e88cd to your computer and use it in GitHub Desktop.
Save jonasantonelli/721829bb6c78b6a911a5d28d913e88cd to your computer and use it in GitHub Desktop.
Styled Component - Using the shorthand tag name 'ul'
import styled from 'styled-components'
/*
* Using the shorthand tag name 'ul'
*/
const UnorderedList = styled.ul`
list-style: none;
li {
margin-bottom: 7px;
}
`
export default () => (
<UnorderedList>
<li>...<li>
</UnorderedList>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment