g2
g2 copied to clipboard
List: Add Component
We need to add a List component, resembling that seen in the screenshot above.
The screenshot is of Bootstrap's ListGroup.
The idea is for this list container to render a collection of items. These items may be actions (or links) or non-actionable content. The items may be border separated, they may not. The list may be bordered, it may not.
The best example may be Ant Design's List component: https://ant.design/components/list/
Another good example would be Material UI's List component: https://material-ui.com/components/lists/
List may serve as the base UI for FlatList, where FlatList would be responsible for things like windowing, drag sorting, etc...
Note: We currently have a List component. However, this one is more like an enhanced ul/ol. We can refactor that to be something like UnorderedList and OrderedList.
We may also need to consolidate (or replace) the existing Menu component with this new List.
A (potential) real world need for this component would be for the new Global Styles design: https://github.com/WordPress/gutenberg/issues/27473#issuecomment-796773866

(Note: The List UI in the middle rendering)