Skip to content

Commit

Permalink
add-import
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Aug 8, 2024
1 parent 0080a5f commit 8d0e54b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/data/system/styled/styled.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ This utility is built on top of the `styled()` module of `@mui/styled-engine` an

### Import path

```ts
import { styled } from '@mui/system';
// if you are using @mui/material
import { styled } from '@mui/material/styles';
```

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).

Expand Down

0 comments on commit 8d0e54b

Please sign in to comment.