Skip to content

Commit a4b0db4

Browse files
authored
[docs] Fix incorrect indentation in migration guide (#47571)
1 parent 97aaae5 commit a4b0db4

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

docs/data/material/migration/migrating-from-deprecated-apis/migrating-from-deprecated-apis.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -287,18 +287,18 @@ All of the Autocomplete's slot (`*Component`) props were deprecated in favor of
287287

288288
```diff
289289
<Autocomplete
290-
- PaperComponent={CustomPaperComponent}
291-
- PopperComponent={CustomPopperComponent}
292-
- ListboxComponent={CustomListboxComponent}
293-
+ slots={{
294-
+ paper: CustomPaperComponent,
295-
+ popper: CustomPopperComponent,
296-
+ }}
297-
+ slotProps={{
298-
+ listbox: {
299-
+ component: CustomListboxComponent,
300-
+ },
301-
+ }}
290+
- PaperComponent={CustomPaperComponent}
291+
- PopperComponent={CustomPopperComponent}
292+
- ListboxComponent={CustomListboxComponent}
293+
+ slots={{
294+
+ paper: CustomPaperComponent,
295+
+ popper: CustomPopperComponent,
296+
+ }}
297+
+ slotProps={{
298+
+ listbox: {
299+
+ component: CustomListboxComponent,
300+
+ },
301+
+ }}
302302
/>
303303
```
304304

@@ -313,12 +313,12 @@ All of the Autocomplete's slot props (`*Props`) props were deprecated in favor o
313313

314314
```diff
315315
<Autocomplete
316-
- ChipProps={CustomChipProps}
317-
- ListboxProps={CustomListboxProps}
318-
+ slotProps={{
319-
+ chip: CustomChipProps,
320-
+ listbox: CustomListboxProps,
321-
+ }}
316+
- ChipProps={CustomChipProps}
317+
- ListboxProps={CustomListboxProps}
318+
+ slotProps={{
319+
+ chip: CustomChipProps,
320+
+ listbox: CustomListboxProps,
321+
+ }}
322322
/>
323323
```
324324

0 commit comments

Comments
 (0)