[List] nestedItems support in @next
See original GitHub issue@oliviertassinari is the nestedItems
prop removed from the new ListItem
component or is it about to be ported sooner or later?
Thanks for your work!
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
[List] nestedItems support in @next · Issue #7373 - GitHub
Long story made short: wrap ListItem in a div and an adjacent Collapse container with nested ListItem s and pad it when nesting....
Read more >React List component - Material UI - MUI
Lists are a continuous group of text or images. They are composed of items containing primary and supplemental actions, which are represented by...
Read more >How to make Material UI List to open just one List Item?
One approach is to keep track of the selectedItem so then you only render its nested items. Something like: <List> ...
Read more >Unordered list - GitBook Documentation
Unordered list content block. ... Another item. Yet another item. To create nested items, you can use tab to indent and shift +...
Read more >Listutorial: Tutorial 3 - Adding padding-left to nested items
One way to help show that the nested list items are inside the main sections is to indent them. This can be done...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Long story made short: wrap
ListItem
in a div and an adjacentCollapse
container with nestedListItem
s and pad it when nesting. Credits to @oliviertassinari (I thinkFade
component is not working flawlessly asCollapse
!).My solution for reference:
@oliviertassinari honestly the only scenario I can see for nesting/using children here is to render nested list items just like the old
nestedItems
used to do: every other case can be handled with the left/middle/right content/icon. That’s why I don’t think we should abstract here but rather provide the specific and most used case without having the devs taking care of this everytime.This is my personal opinion though: I agree with keeping everything as clean as possible and let devs extends functionalities when needed! 😃