Last active
July 13, 2021 00:20
-
-
Save jonasantonelli/bc3605224b715d8aeea22ef54a67e1ca to your computer and use it in GitHub Desktop.
Styled Components - switching element rendered
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled, { css } from 'styled-components'; | |
/* | |
* Switching <ul> element to <ol> | |
*/ | |
const UnorderedList = styled.ul` | |
list-style: circle; | |
li { | |
text-transform: uppercase; | |
margin-bottom: 8px; | |
} | |
`; | |
export default () => ( | |
<UnorderedList as="ol"> | |
<li>...<li> | |
</UnorderedList> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment