You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data/joy/customization/right-to-left/right-to-left.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,33 +60,33 @@ const theme = extendTheme({
60
60
61
61
### 3. Configure RTL style plugin
62
62
63
-
Install the [`stylis-plugin-rtl`](https://github.com/styled-components/stylis-plugin-rtl) using one of the commands below:
63
+
Install the `@mui/stylis-plugin-rtl` using one of the commands below:
64
64
65
65
<codeblockstorageKey="package-manager">
66
66
67
67
```bash npm
68
-
npm install stylis stylis-plugin-rtl
68
+
npm install stylis @mui/stylis-plugin-rtl
69
69
```
70
70
71
71
```bash pnpm
72
-
pnpm add stylis stylis-plugin-rtl
72
+
pnpm add stylis @mui/stylis-plugin-rtl
73
73
```
74
74
75
75
```bash yarn
76
-
yarn add stylis stylis-plugin-rtl
76
+
yarn add stylis @mui/stylis-plugin-rtl
77
77
```
78
78
79
79
</codeblock>
80
80
81
81
#### With Emotion
82
82
83
-
If you're using Emotion, use the [CacheProvider](https://emotion.sh/docs/cache-provider) to create a new cache instance that uses `rtlPlugin` from `stylis-plugin-rtl` and add that to the top of your application tree:
83
+
If you're using Emotion, use the [CacheProvider](https://emotion.sh/docs/cache-provider) to create a new cache instance that uses `rtlPlugin` from `@mui/stylis-plugin-rtl` and add that to the top of your application tree:
84
84
85
85
```jsx
86
86
import { CacheProvider } from'@emotion/react';
87
87
importcreateCachefrom'@emotion/cache';
88
88
import { prefixer } from'stylis';
89
-
importrtlPluginfrom'stylis-plugin-rtl';
89
+
importrtlPluginfrom'@mui/stylis-plugin-rtl';
90
90
91
91
// Create rtl cache
92
92
constcacheRtl=createCache({
@@ -105,7 +105,7 @@ If you're using styled-components, use the [StyleSheetManager](https://styled-co
Copy file name to clipboardExpand all lines: docs/data/material/customization/right-to-left/right-to-left.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,33 +60,33 @@ const theme = createTheme({
60
60
61
61
### 3. Configure RTL style plugin
62
62
63
-
Install the [`stylis-plugin-rtl`](https://github.com/styled-components/stylis-plugin-rtl) using one of the commands below:
63
+
Install the `@mui/stylis-plugin-rtl` using one of the commands below:
64
64
65
65
<codeblockstorageKey="package-manager">
66
66
67
67
```bash npm
68
-
npm install stylis stylis-plugin-rtl
68
+
npm install stylis @mui/stylis-plugin-rtl
69
69
```
70
70
71
71
```bash pnpm
72
-
pnpm add stylis stylis-plugin-rtl
72
+
pnpm add stylis @mui/stylis-plugin-rtl
73
73
```
74
74
75
75
```bash yarn
76
-
yarn add stylis stylis-plugin-rtl
76
+
yarn add stylis @mui/stylis-plugin-rtl
77
77
```
78
78
79
79
</codeblock>
80
80
81
81
#### With Emotion
82
82
83
-
If you're using Emotion, use the [CacheProvider](https://emotion.sh/docs/cache-provider) to create a new cache instance that uses `rtlPlugin` from `stylis-plugin-rtl` and add that to the top of your application tree:
83
+
If you're using Emotion, use the [CacheProvider](https://emotion.sh/docs/cache-provider) to create a new cache instance that uses `rtlPlugin` from `@mui/stylis-plugin-rtl` and add that to the top of your application tree:
84
84
85
85
```jsx
86
86
import { CacheProvider } from'@emotion/react';
87
87
importcreateCachefrom'@emotion/cache';
88
88
import { prefixer } from'stylis';
89
-
importrtlPluginfrom'stylis-plugin-rtl';
89
+
importrtlPluginfrom'@mui/stylis-plugin-rtl';
90
90
91
91
// Create rtl cache
92
92
constrtlCache=createCache({
@@ -105,7 +105,7 @@ If you're using styled-components, use the [StyleSheetManager](https://styled-co
0 commit comments