If the amount of tabs exceeds the viewport, the component renders arrow-buttons to help with horizontal scrolling. The
background and gradient has to align to your chosen background.
You may need to change the initial active tab. To do so, set the active-tab-index attribute of p-tabs. Make sure to
update the activeTabIndex when adding or removing elements.
prev
next
Tab Content One
Tab Content Two
Tab Content Three
prev
next
Open in Stackblitz
<!doctype html>
<htmllang="en"class="auto"><head><title></title></head><bodyclass="bg-base"><p-tabsactive-tab-index="1"><p-tabs-itemlabel="Tab One"><p-text> Tab Content One
</p-text></p-tabs-item><p-tabs-itemlabel="Tab Two"><p-text> Tab Content Two
</p-text></p-tabs-item><p-tabs-itemlabel="Tab Three"><p-text> Tab Content Three
</p-text></p-tabs-item></p-tabs><script></script></body></html>