How to make this dynamic UI

Hello everyone. I have no idea to implement it. Requirement is the items which will disappear and show its hidden total when screen is increasingly narrower
Ex: A,B,C,D -screen narrow-> A,B,C +1 -screen narrower-> A,B +2
Thank you everyone
image.png
Was this page helpful?