Skip to content

Instantly share code, notes, and snippets.

@mjrode
Last active January 19, 2020 16:36
Show Gist options
  • Save mjrode/815e14f7a613c83a700d45b63fece2cb to your computer and use it in GitHub Desktop.
Save mjrode/815e14f7a613c83a700d45b63fece2cb to your computer and use it in GitHub Desktop.
Styled MaterialUI divider
import React from 'react';
import Divider from '@material-ui/core/Divider';
import styled from 'styled-components';
const StyledDivider = styled(Divider)`
color: white
`
export default function App( ) {
return (
<div>
<h1>Hello World</h1>
<StyledDivider/>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment