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

styled() - MUI System

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

Utility for creating styled components.

styled() - MUI System Skip to content styled() Utility for creating styled components. Introduction All Material UI components are styled with the styled() utility. This utility is built on top of the styled() module of @mui/styled-engine and provides additional features. Import path You can use the utility coming from the @mui/system package, or if you are using @mui/material , you can import it from @mui/material/styles . The difference is in the default theme that is used (if no theme is available in the React context). import { styled } from '@mui/system' ; // If you are using @mui/materia

Explore this link on the map →

related reading