The p-scroller component forces its child nodes to be rendered horizontally next to each other. In case not enough
viewport space is given a clickable scroll indicator is shown and the elements become scrollable.
As soon as the slotted element(s) exceed the viewport / their respective container, scroll indicators are shown.
If the p-scroller component is accessed by keyboard navigation and is focused, scrolling via arrow right and
arrow left is possible. If p-scroller contains focusable element(s) these can be also accessed by keyboard
navigation.
prev
next
prev
next
Open in Stackblitz
<!doctype html>
<htmllang="en"class="auto"><head><title></title></head><bodyclass="bg-base"><p-scrollerclass="max-w-[600px] whitespace-nowrap"><p-tagclass="me-static-md"color="primary"><buttontype="button"> Some tag content
</button></p-tag><p-tagclass="me-static-md"color="notification-info-soft"><buttontype="button"> Some tag content
</button></p-tag><p-tagclass="me-static-md"color="notification-warning-soft"><buttontype="button"> Some tag content
</button></p-tag><p-tagclass="me-static-md"color="primary"><buttontype="button"> Some tag content
</button></p-tag><p-tagclass="me-static-md"color="notification-info-soft"><buttontype="button"> Some tag content
</button></p-tag><p-tagclass="me-static-md"color="notification-warning-soft"><buttontype="button"> Some tag content
</button></p-tag><p-tagclass="me-static-md"color="primary"><buttontype="button"> Some tag content
</button></p-tag><p-tagcolor="notification-info-soft"><buttontype="button"> Some tag content
</button></p-tag></p-scroller><script></script></body></html>