Tabs - Keep React

The Tab Group Component in the Keep React allows you to organize and display content in a tabbed interface. It provides a convenient way to switch between different sections or views within a single container. With customizable options for size, type, and status, you can create versatile and visually appealing tab groups that align with your design aesthetic.

Table of Contents#

Default Tabs#

The default Tabs component presents a collection of pills style button that include both tab elements and corresponding tab content.

Profile content

Bordered Tabs#

By setting borderPosition="top", you can make the border appear at the top of the tab group. Conversely, setting borderPosition="bottom" will cause the border to appear at the bottom of the tab group.

Profile content

Tabs with Icon#

Tabs items with icons are a user interface design element where each tab in a tabbed navigation system is accompanied by an icon. You can change the icon position by using iconPosition props as "right" | "left".

Profile content

Tab Notifications#

Keep users informed by adding notifications to tabs. Utilize badges to indicate new or important content.

Inbox content

Tabs API Reference#

Explore the available props for the <Tabs> component

PropertyDescriptionTypeDefault
styleSpecifies the style variant of the tabs.
default
underline
pills
default
iconPositionDetermines whether icons appear on the left or right side of tab labels.
left
right
left
borderPositionSets the position of a border line within the Tabs component.
top
bottom
bottom
onActiveTabChangeCallback for handling active tab changes.function()=>void

Tabs Items API Reference#

Explore the available props for the <Tabs.Item> component

PropertyDescriptionTypeDefault
titleThe title of the tab item.ReactNodeProfile
activeDetermines whether the tab item is active.booleanfalse
disabledDetermines whether the tab item is disabled.booleanfalse
iconThe icon to display with the tab item.ReactNodeNone
notificationNotification content for the tab item.
number
string
number
notificationColorThe color of the notification for the tab item.
error
gray
info
success
warning
info