Closed cemreyavuz closed 1 day ago
Hey @cemreyavuz Thanks for opening this issue. I'll leave this one to @flaviendelangle as he is the master of types on the tree view components! 🥷
Indeed, I'll fix that :+1:
Thanks for the very swift response 🙌🏻
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
[!NOTE] @cemreyavuz How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.
Steps to reproduce
Steps:
Demo.tsx
fileCurrent behavior
I cannot use transition props like
enter
andexit
as part ofslotProps.groupTransition
forTreeView
orTreeItem
.For
TreeItem
, it's typed asgroupTransition?: SlotComponentProps<'div', {}, {}>;
: https://github.com/mui/mui-x/blob/6e21fb6e34dbf60f01c24b089c4e2d4c19758647/packages/x-tree-view/src/TreeItem/TreeItem.types.ts#L56It probably should be sth like
groupTransition?: SlotComponentPropsFromProps<TransitionProps, {}, {}>;
(at least this was working fine in older versions).Expected behavior
I expect to use transition props like
enter
andexit
as part ofslotProps.groupTransition
.Context
No response
Your environment
Search keywords: TreeView, TreeItem, groupTransition