List Component with Dynamic Overflow Handling #556
Labels
P2 - normal
Priority: Nice to have
product: Studio
Relevant to a specific issue in Studio
TAG: ux update
Product
Kolibri, Studio, KDS.
Desired behavior
Create a new generic component that renders an horizontal list that automatically renders a "show more" component if any items overflow the container.
This should be managed as a renderless component that receives a slot to render the list items, and a slot to render the "show more" component. And provide a way to render divider elements.
I think a good way of hanlding this is that the component receives a list of items, and then each item is passed as a prop to a #item slot. And having another #more slot that renders the "see more" component, and that this slot receives a list of the overflowed items. One idea for including dividers is that they are objects within the items list that have a
type: "divider"
attribute that is consistent with the way dividers are handled in theKDropdownMenu
.The Value Add
This component can be used in multiple places:
KBreadcrumbs
in KDS.The text was updated successfully, but these errors were encountered: