温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.mui.com/material-ui/migration/v5-style-changes/
点击访问原文链接

Breaking changes in v5, part one: styles and themes - Material UI

🚀 Material UI and MUI X v9 are out! Check out the announcement blogpost.Getting startedComponentsComponent APICustomizationHow-to guidesIntegrationsExperimental APIsMigrationUpgrade to Grid v2Migration from @material-ui/pickersUpgrade to v9: getting startedUpgrade to v7: getting startedMigrating from deprecated APIsNative colorUpgrade to v6: getting startedMigrating from deprecated APIsMigrating to Pigment CSSMigrating to v5: getting startedBreaking changes: style and themeBreaking changes: componentsMigrating from JSS (optional)TroubleshootingMigration from v3 to v4Migration from v0.x to v1Discover moreDesign resourcesTemplate storeGetting startedBreaking changes part two: componentsMigrating from JSSTroubleshootingthe codemodsmain migration guideBreaking changes in v5 part two: componentslist of global state classnamesCaveat with refsAccordionAlertAvatarButtonGroupCardDialogImageListListTabTabsToggleButtonTimelineEmotionStyledEngineProvider implementationClassName Generatorthe alternative that uses the useMediaQuery hookdedicated pageEdit this pageMigrating to v5: getting startedBreaking changes: componentsBlogStoreMaterial UI v5 migrationBreaking changes, part oneMigrate theme styleOverrides to EmotionRefactor local rule referencesRefactor alternative syntax for space- and comma-separated valuesrefRefactor non-ref-forwarding class componentsFix ref type specificityStyle library✅ Adjust CSS injection order✅ Add prepend to createCacheTheme structure✅ Add adaptV4Theme helperRemove gutters✅ Remove px suffix✅ Rename theme.palette.typeChange default theme.palette.info colorsChange default theme.palette.success colorsChange default theme.palette.warning colorsRestore theme.palette.text.hint key (if needed)Restructure component definitions@mui/stylesUpdate ThemeProvider import✅ Add module augmentation for DefaultTheme (TypeScript)@mui/material/colors✅ Change color imports@mui/material/styles✅ Rename fade to alpha✅ Update createStyles import✅ Update createGenerateClassName import✅ Rename createMuiTheme✅ Update MuiThemeProvider import✅ Update jssPreset import✅ Update makeStyles import✅ Update ServerStyleSheets importstyled✅ Update StylesProvider import✅ Update useThemeVariants import✅ Update withStyles import✅ Replace innerRef with refUpdate withTheme import✅ Remove withWidth@mui/icons-materialReduce GitHub icon size@material-ui/pickersSystem✅ Rename gap props✅ Add spacing units to gap propsBecome a Diamond sponsorMUI stands in solidarity with Ukraine.

智能索引记录