Tabs

For navigating between sections of related content.


children
fitted
renderTabContentOnlyWhenSelected
onTabClick

Overflow

When the width of the individual Tab components exceed the total width of the Tabs component, scrolling becomes enabled and buttons are placed on the edges to make it easier to scroll to off-screen Tabs on mobile devices.

Props

NameTypeDefaultDescription

children

react node

Inner tabs.

defaultSelectedIndex

number

Index of the tab that is selected when rendered.

fitted

boolean

Sets the tab components to equally take up the width of the tabs container.

renderTabContentOnlyWhenSelected

boolean

Causes hidden tab content to only be rendered when the tab is selected.

selectedIndex

number

Index of selected tab if controlling the tabs component.

onTabClick

function

On click function passed to each tab component used when controlling the tabs component. Runs with arguments onClick(event, index).

className

string

className passed to the Tabs component

tabContentClassName

string

className passed to the tab content container

ariaLabelLeft

string

aria label on the left arrow button when tabs are scrollable

ariaLabelRight

string

aria label on the right arrow button when tabs are scrollable


The Nulogy Design System is maintained by the Design Ops team. Our mission is to help our teams build better interfaces faster. 🚀

Please reach out with any questions or requests.