Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jonasantonelli/bc3605224b715d8aeea22ef54a67e1ca to your computer and use it in GitHub Desktop.
Save jonasantonelli/bc3605224b715d8aeea22ef54a67e1ca to your computer and use it in GitHub Desktop.
Styled Components - switching element rendered
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