📜  带有主题的材质 ui 样式组件 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:25.311000             🧑  作者: Mango

代码示例1
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,
}))