Answers for "mui styled theme and props"

0

material ui styled components with theme

import { styled, withTheme } from "@material-ui/core/styles"
import Button from "@material-ui/core/Button"

export const StyledButton= styled(withTheme(Button))(props => ({
  background: props.theme.palette.background.paper,
}))
Posted by: Guest on July-09-2021

Code answers related to "mui styled theme and props"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language