The AdaptiveContainerComponent is a flexible container that arranges its child elements in a row or column, depending on the specified direction. It uses flexbox to manage the layout and automatically hides elements that overflow the container's bounds.
The container uses flex-wrap: nowrap to detect overflow and hides elements (display: none) that do not fit.
Overflowing elements can be moved to a hidden container automatically, which per default is put into a dropdown that can be opened to show the hidden elements.
<dui-adaptive-container> <dui-button>Button 1</dui-button> <dui-button>Button 2</dui-button> <dui-button>Button 3</dui-button> <dui-button>Button 4</dui-button> </dui-adaptive-container>