Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ASSEMBLY

how to custom style material ui

import * as React from 'react';
import { StyledEngineProvider } from '@mui/material/styles';
import Box from '@mui/material/Box';

export default function GlobalCssPriority() {
  return (
    <StyledEngineProvider injectFirst>
     <Box className="example"></Box>
    </StyledEngineProvider>
  );
}

// Styled Engine Provider uses prop injectFirst, which will inject the
// styles at the top precedence and any plain CSS class can be used to
// style the element in question. 
Source by mui.com #
 
PREVIOUS NEXT
Tagged: #custom #style #material #ui
ADD COMMENT
Topic
Name
5+3 =