[TreeView] Support module augmentation for slots #14062
Labels
component: tree view
TreeView, TreeItem. This is the name of the generic UI component, not the React module!
dx
Related to developers' experience
enhancement
This is not a bug, nor a new feature
typescript
waiting for 👍
Waiting for upvotes
All the slots in
@mui/x-tree-view
and@mui/x-tree-view-pro
packages should support module augmentation.This allows to pass custom props to your slots without casting the types.
Here is how it works on the data grid:
You can then use your custom slot without any type casting:
Search keywords:
The text was updated successfully, but these errors were encountered: