-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
[accordion] slotProps.transition is not type-safe #48145
Description
Steps to reproduce
Steps:
- https://stackblitz.com/edit/yo5pd4kq?file=src%2FDemo.tsx
- Insert a random prop name in slotProps.transition
- You can see typescript does not validate it. It only acts as an autocomplete
Current behavior
slotProps.transition is not type safe
Expected behavior
slotProps.transition should be fully type safe, like other slotProps
Context
No response
Your environment
System:
OS: Linux 6.6 Ubuntu Resolute Raccoon (development branch) 26.04 (Resolute Raccoon)
Binaries:
Node: 25.8.1 - /home/rodrigofaria/.nvm/versions/node/v25.8.1/bin/node
npm: 11.11.0 - /home/rodrigofaria/.nvm/versions/node/v25.8.1/bin/npm
pnpm: 10.33.0 - /home/rodrigofaria/.nvm/versions/node/v25.8.1/bin/pnpm
Browsers:
Chrome: 143.0.7499.109
Firefox: Not Found
npmPackages:
@emotion/react: 11.14.0 => 11.14.0
@emotion/styled: 11.14.0 => 11.14.0
@mui/icons-material: 7.3.9 => 7.3.9
@mui/lab: 7.0.1-beta.23 => 7.0.1-beta.23
@mui/material: 7.3.9 => 7.3.9
@mui/system: 7.3.9 => 7.3.9
@mui/types: 7.4.12 => 7.4.12
@mui/utils: 7.3.9 => 7.3.9
@mui/x-data-grid: 8.28.1 => 8.28.1
@mui/x-data-grid-generator: 8.28.1 => 8.28.1
@mui/x-data-grid-premium: 8.28.1 => 8.28.1
@mui/x-data-grid-pro: 8.28.1 => 8.28.1
@mui/x-date-pickers: 8.10.2 => 8.10.2
@mui/x-date-pickers-pro: 8.10.2 => 8.10.2
@mui/x-license: 8.10.2 => 8.10.2
@mui/x-tree-view: 7.28.1 => 7.28.1
@types/react: 19.2.14 => 19.2.14
react: 19.2.4 => 19.2.4
react-dom: 19.2.4 => 19.2.4
styled-components: 5.3.5 => 5.3.5
typescript: 5.9.3 => 5.9.3
Search keywords: slotProps, transition, type-safe