Skip to main content
The Tabs component allows you to group related content into clickable tabs, with each Tab child component creating a new tab. Options are provided for visual variants, tooltip configuration, and more.
Example of the Tabs UI component

Props

<Tabs> props <Tab> props Once there are enough tabs to exceed the width of the container, HubSpot will automatically put overflowing tabs into a More dropdown menu, which users can click to select from the remaining tabs.
Example of how HubSpot automatically handles overflow for tabs that would exceed the width of the container

Variants

The variant prop provides two options for tab styling: default and enclosed.
Example of default tab styling
Example of enclosed tab styling
You can also set the fill prop to true to configure the tabs to take up the full width of the container.
Example of full-width tab styling

Tooltips

Use the tooltip prop to add tooltips to tabs on hover. By default, the tooltip will appear above the tab, but you can use the tooltipPlacement prop to configure it further.
Example of a default tooltip that appears when hovering over the tab
Example of a tooltip configured to display to the right of the tab

Controlling tabs via React state

In addition to being able to switch tabs by clicking on each tab, you can also control tab select via React state using the selected and onSelectedChange props.
Example of controlling tabs via React state
Last modified on March 29, 2026