[tree view] groupTransition
slot prop doesn't accept transition props
#15526
Labels
bug 🐛
Something doesn't work
component: tree view
TreeView, TreeItem. This is the name of the generic UI component, not the React module!
typescript
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', {}, {}>;
:mui-x/packages/x-tree-view/src/TreeItem/TreeItem.types.ts
Line 56 in 6e21fb6
It 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
The text was updated successfully, but these errors were encountered: