-
Notifications
You must be signed in to change notification settings - Fork 850
-
What is its use?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
In Tree
component, the elements
prop is mainly for internal logic — it’s not used for rendering the UI directly.
It helps with things like:
- Expanding the right folders when a selectedId is passed (expandSpecificTargetedElements function).
- Auto-expanding parent folders when a file or folder is selected.
- Supporting the CollapseButton (expand/collapse all) by keeping track of the full structure.
The actual UI is rendered manually by writing <Folder>
and <File>
components inside the .
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment