diff --git a/docs/data/joy/components/autocomplete/CountrySelect.js b/docs/data/joy/components/autocomplete/CountrySelect.js index f58cc87f1a2faa..760bddbc201890 100644 --- a/docs/data/joy/components/autocomplete/CountrySelect.js +++ b/docs/data/joy/components/autocomplete/CountrySelect.js @@ -10,7 +10,7 @@ export default function CountrySelect() { { if (reason === 'escape') { handleClose(); diff --git a/docs/data/joy/components/autocomplete/GitHubLabel.tsx b/docs/data/joy/components/autocomplete/GitHubLabel.tsx index 6f6c9fc657bcc8..2db87d8b9489d1 100644 --- a/docs/data/joy/components/autocomplete/GitHubLabel.tsx +++ b/docs/data/joy/components/autocomplete/GitHubLabel.tsx @@ -134,7 +134,7 @@ export default function GitHubLabel() { multiple size="sm" placeholder="Filter labels" - components={{ listbox: Listbox }} + slots={{ listbox: Listbox }} onClose={(event, reason) => { if (reason === 'escape') { handleClose(); diff --git a/docs/data/joy/components/autocomplete/Virtualize.js b/docs/data/joy/components/autocomplete/Virtualize.js index 1c20f09c0078ad..9067a26fa68e69 100644 --- a/docs/data/joy/components/autocomplete/Virtualize.js +++ b/docs/data/joy/components/autocomplete/Virtualize.js @@ -121,7 +121,7 @@ export default function Virtualize() { sx={{ width: 300 }} disableListWrap placeholder="Type to search" - components={{ + slots={{ listbox: ListboxComponent, }} options={OPTIONS} diff --git a/docs/data/joy/components/autocomplete/Virtualize.tsx b/docs/data/joy/components/autocomplete/Virtualize.tsx index e3d708d9f9fe76..97ed0ff9ca782e 100644 --- a/docs/data/joy/components/autocomplete/Virtualize.tsx +++ b/docs/data/joy/components/autocomplete/Virtualize.tsx @@ -121,7 +121,7 @@ export default function Virtualize() { sx={{ width: 300 }} disableListWrap placeholder="Type to search" - components={{ + slots={{ listbox: ListboxComponent, }} options={OPTIONS} diff --git a/docs/data/joy/components/autocomplete/Virtualize.tsx.preview b/docs/data/joy/components/autocomplete/Virtualize.tsx.preview index 04ca6bb06d2ad0..a4beb5945dc715 100644 --- a/docs/data/joy/components/autocomplete/Virtualize.tsx.preview +++ b/docs/data/joy/components/autocomplete/Virtualize.tsx.preview @@ -4,7 +4,7 @@ sx={{ width: 300 }} disableListWrap placeholder="Type to search" - components={{ + slots={{ listbox: ListboxComponent, }} options={OPTIONS} diff --git a/docs/data/joy/components/autocomplete/autocomplete.md b/docs/data/joy/components/autocomplete/autocomplete.md index b93886027ff96a..c91d9fa492cc46 100644 --- a/docs/data/joy/components/autocomplete/autocomplete.md +++ b/docs/data/joy/components/autocomplete/autocomplete.md @@ -301,7 +301,7 @@ In the event you want the avoid autofill, you can try the following: ```jsx val.filter((text) => text !== item)); } }} - componentsProps={{ + slotProps={{ action: ({ checked }) => ({ sx: { bgcolor: checked ? 'background.surface' : 'transparent', diff --git a/docs/data/joy/components/checkbox/ExampleChoiceChipCheckbox.js b/docs/data/joy/components/checkbox/ExampleChoiceChipCheckbox.js index c199896884f320..f450650981482e 100644 --- a/docs/data/joy/components/checkbox/ExampleChoiceChipCheckbox.js +++ b/docs/data/joy/components/checkbox/ExampleChoiceChipCheckbox.js @@ -52,7 +52,7 @@ export default function ExampleChoiceChipCheckbox() { setValue((val) => val.filter((text) => text !== item)); } }} - componentsProps={{ + slotProps={{ action: ({ checked }) => ({ sx: checked ? { diff --git a/docs/data/joy/components/checkbox/FocusCheckbox.js b/docs/data/joy/components/checkbox/FocusCheckbox.js index 84dca85f4ee7cc..a9885f6a661be6 100644 --- a/docs/data/joy/components/checkbox/FocusCheckbox.js +++ b/docs/data/joy/components/checkbox/FocusCheckbox.js @@ -9,14 +9,14 @@ export default function FocusCheckbox() { label="Label" defaultChecked // to demonstrate the focus outline - componentsProps={{ action: { className: checkboxClasses.focusVisible } }} + slotProps={{ action: { className: checkboxClasses.focusVisible } }} /> .${checkboxClasses.checkbox}`]: { position: 'relative' } }} // to demonstrate the focus outline - componentsProps={{ action: { className: checkboxClasses.focusVisible } }} + slotProps={{ action: { className: checkboxClasses.focusVisible } }} /> ); diff --git a/docs/data/joy/components/checkbox/HoverCheckbox.js b/docs/data/joy/components/checkbox/HoverCheckbox.js index d08dc19ce1bf65..5baeb23e7876c4 100644 --- a/docs/data/joy/components/checkbox/HoverCheckbox.js +++ b/docs/data/joy/components/checkbox/HoverCheckbox.js @@ -7,7 +7,7 @@ export default function HoverCheckbox() { } label="Label" - componentsProps={{ + slotProps={{ root: ({ checked, focusVisible }) => ({ sx: !checked ? { diff --git a/docs/data/joy/components/checkbox/OverlayCheckbox.js b/docs/data/joy/components/checkbox/OverlayCheckbox.js index ef85864c3a870d..f1b142d3bdf2d7 100644 --- a/docs/data/joy/components/checkbox/OverlayCheckbox.js +++ b/docs/data/joy/components/checkbox/OverlayCheckbox.js @@ -22,7 +22,7 @@ export default function OverlayCheckbox() { label="Focus outline covers the parent!" overlay // Force the outline to appear in the demo. Usually, you don't need this in your project. - componentsProps={{ action: { className: checkboxClasses.focusVisible } }} + slotProps={{ action: { className: checkboxClasses.focusVisible } }} /> diff --git a/docs/data/joy/components/chip/LinkChip.js b/docs/data/joy/components/chip/LinkChip.js index f27c3cd533ff9e..5e612da06f6f67 100644 --- a/docs/data/joy/components/chip/LinkChip.js +++ b/docs/data/joy/components/chip/LinkChip.js @@ -3,7 +3,7 @@ import Chip from '@mui/joy/Chip'; export default function ClickableChip() { return ( - + Anchor chip ); diff --git a/docs/data/joy/components/chip/LinkChip.tsx b/docs/data/joy/components/chip/LinkChip.tsx index f27c3cd533ff9e..5e612da06f6f67 100644 --- a/docs/data/joy/components/chip/LinkChip.tsx +++ b/docs/data/joy/components/chip/LinkChip.tsx @@ -3,7 +3,7 @@ import Chip from '@mui/joy/Chip'; export default function ClickableChip() { return ( - + Anchor chip ); diff --git a/docs/data/joy/components/chip/LinkChip.tsx.preview b/docs/data/joy/components/chip/LinkChip.tsx.preview index a521dc9a0bf2cb..65d462c04cfb56 100644 --- a/docs/data/joy/components/chip/LinkChip.tsx.preview +++ b/docs/data/joy/components/chip/LinkChip.tsx.preview @@ -1,3 +1,3 @@ - + Anchor chip \ No newline at end of file diff --git a/docs/data/joy/components/menu/MenuIconSideNavExample.js b/docs/data/joy/components/menu/MenuIconSideNavExample.js index 109f82b1df3065..d06529bc2712e7 100644 --- a/docs/data/joy/components/menu/MenuIconSideNavExample.js +++ b/docs/data/joy/components/menu/MenuIconSideNavExample.js @@ -89,7 +89,7 @@ function MenuButton({ children, menu, open, onOpen, onLeaveMenu, label, ...props actions: menuActions, anchorEl: buttonRef.current, modifiers, - componentsProps: { + slotProps: { listbox: { id: `nav-example-menu-${label}`, 'aria-label': label, diff --git a/docs/data/joy/components/menu/MenuToolbarExample.js b/docs/data/joy/components/menu/MenuToolbarExample.js index d111e0866ca009..ac3cca52510706 100644 --- a/docs/data/joy/components/menu/MenuToolbarExample.js +++ b/docs/data/joy/components/menu/MenuToolbarExample.js @@ -51,7 +51,7 @@ const MenuButton = React.forwardRef( open, actions: menuActions, anchorEl: buttonRef.current, - componentsProps: { + slotProps: { listbox: { id: `toolbar-example-menu-${children}`, 'aria-label': children, diff --git a/docs/data/joy/components/menu/MenuUsage.js b/docs/data/joy/components/menu/MenuUsage.js index 90b0143d4258cf..c45ff2b464e77f 100644 --- a/docs/data/joy/components/menu/MenuUsage.js +++ b/docs/data/joy/components/menu/MenuUsage.js @@ -78,7 +78,7 @@ export default function MenuUsage() { anchorEl={anchorEl} open={open} onClose={handleClose} - componentsProps={{ + slotProps={{ listbox: { 'aria-labelledby': 'menu-usage-button', }, diff --git a/docs/data/joy/components/modal/FadeModalDialog.js b/docs/data/joy/components/modal/FadeModalDialog.js index 61d1310613f117..37262235dab95b 100644 --- a/docs/data/joy/components/modal/FadeModalDialog.js +++ b/docs/data/joy/components/modal/FadeModalDialog.js @@ -18,7 +18,7 @@ export default function FadeModalDialog() { keepMounted open={!['exited', 'exiting'].includes(state)} onClose={() => setOpen(false)} - componentsProps={{ + slotProps={{ backdrop: { sx: { opacity: 0, diff --git a/docs/data/joy/components/radio/ExampleAlignmentButtons.js b/docs/data/joy/components/radio/ExampleAlignmentButtons.js index 718e807c1111ea..f8ccf227fe71ff 100644 --- a/docs/data/joy/components/radio/ExampleAlignmentButtons.js +++ b/docs/data/joy/components/radio/ExampleAlignmentButtons.js @@ -55,7 +55,7 @@ export default function ExampleAlignmentButtons() { }[item] } variant={alignment === item ? 'solid' : 'plain'} - componentsProps={{ + slotProps={{ input: { 'aria-label': item }, action: { sx: { borderRadius: 0, transition: 'none' }, diff --git a/docs/data/joy/components/radio/ExampleProductAttributes.js b/docs/data/joy/components/radio/ExampleProductAttributes.js index ded950eb3c1ae6..1b52896fb8cb13 100644 --- a/docs/data/joy/components/radio/ExampleProductAttributes.js +++ b/docs/data/joy/components/radio/ExampleProductAttributes.js @@ -48,7 +48,7 @@ export default function ExampleProductAttributes() { color={color} checkedIcon={} value={color} - componentsProps={{ + slotProps={{ input: { 'aria-label': color }, radio: { sx: { diff --git a/docs/data/joy/components/radio/ExampleSegmentedControls.js b/docs/data/joy/components/radio/ExampleSegmentedControls.js index 70a316c6082d5f..44bdf2f81aa718 100644 --- a/docs/data/joy/components/radio/ExampleSegmentedControls.js +++ b/docs/data/joy/components/radio/ExampleSegmentedControls.js @@ -38,7 +38,7 @@ export default function ExampleSegmentedControls() { px: 2, alignItems: 'center', }} - componentsProps={{ + slotProps={{ action: ({ checked }) => ({ sx: { ...(checked && { diff --git a/docs/data/joy/components/radio/IconlessRadio.js b/docs/data/joy/components/radio/IconlessRadio.js index 9cc4b42b0e8c29..ca4662bdc0933a 100644 --- a/docs/data/joy/components/radio/IconlessRadio.js +++ b/docs/data/joy/components/radio/IconlessRadio.js @@ -41,7 +41,7 @@ export default function IconlessRadio() { overlay disableIcon value={value} - componentsProps={{ + slotProps={{ label: ({ checked }) => ({ sx: { fontWeight: 'lg', diff --git a/docs/data/joy/components/radio/RadioButtons.js b/docs/data/joy/components/radio/RadioButtons.js index 25f829372c073d..70a1c7dc7c7e74 100644 --- a/docs/data/joy/components/radio/RadioButtons.js +++ b/docs/data/joy/components/radio/RadioButtons.js @@ -16,14 +16,14 @@ export default function RadioButtons() { onChange={handleChange} value="a" name="radio-buttons" - componentsProps={{ input: { 'aria-label': 'A' } }} + slotProps={{ input: { 'aria-label': 'A' } }} /> ); diff --git a/docs/data/joy/components/radio/RadioPositionEnd.js b/docs/data/joy/components/radio/RadioPositionEnd.js index d0efa8187ee17b..f33fd10bbd79b3 100644 --- a/docs/data/joy/components/radio/RadioPositionEnd.js +++ b/docs/data/joy/components/radio/RadioPositionEnd.js @@ -34,7 +34,7 @@ export default function RadioPositionEnd() { value={item} label={item} sx={{ flexGrow: 1, flexDirection: 'row-reverse' }} - componentsProps={{ + slotProps={{ action: ({ checked }) => ({ sx: (theme) => ({ ...(checked && { diff --git a/docs/data/joy/components/radio/radio-pt.md b/docs/data/joy/components/radio/radio-pt.md index 9583f9d9a3ea89..58f3dfc61f4d68 100644 --- a/docs/data/joy/components/radio/radio-pt.md +++ b/docs/data/joy/components/radio/radio-pt.md @@ -98,7 +98,7 @@ Here are a few tips to make sure you have an accessible radio button component: ```jsx Label