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

Usage - MUI System

mui.com · 2,702 words · saved by 1 readers

Learn the basics of working with MUI System and its utilities.

Usage - MUI System Skip to content Usage Learn the basics of working with MUI System and its utilities. Why use MUI System? MUI System's sx prop lets you avoid writing unnecessary styled-component code, and instead define styles directly within the component itself. This is especially useful for one-off components with custom designs. The following code samples illustrate the difference between styled-components and sx : Sessions 98.3 K 18.7% vs. last week Using the styled-components API: const StatWrapper = styled ( 'div' ) ( ( { theme } ) => ` background-color: ${ theme . palette . backgroun

Explore this link on the map →

related reading