Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

material ui styled component

const MyStyledButton = styled(Button)`
  background-color: red;
  color: white;
`;

export default function App() {
  return (
    <StylesProvider injectFirst>
      <div className="App">
        <MyStyledButton color="primary">Foo</MyStyledButton>
      </div>
    </StylesProvider>
  );
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #material #ui #styled #component
ADD COMMENT
Topic
Name
5+7 =