flâneur — a map of the web's best reading

Themed components - Material UI

mui.com · 1,426 words · saved by 1 readers

You can customize a component's styles, default props, and more by using its component key inside the theme.

Themed components - Material UI Skip to content Themed components You can customize a component's styles, default props, and more by using its component key inside the theme. The components key in the theme helps to achieve styling consistency across your application. However, the theme isn't tree-shakable, prefer creating new components for heavy customizations. Theme default props Every Material UI component has default values for each of its props. To change these default values, use the defaultProps key exposed in the theme's components key: const theme = createTheme ( { components : { //

Explore this link on the map →

related reading