Swipe (Mobile)

Mobile-optimized swipeable tabs with smooth transitions.

tabsswipemobilegesture

Props

Customize the component with these props

PropertyTypeDefaultDescription
tabs
TabItem[][{id: '1', label: 'View 1', content: '...'}, ...]Array of tab items with id, label, and optional content.
defaultActive
number0Index of the initially active tab.
backgroundColor
stringtransparentBackground color of the component (hex, rgb, or hsl).
containerBgColor
string#ffffffBackground color of the container (hex, rgb, or hsl).
containerBorderColor
string#e4e4e7Border color of the container (hex, rgb, or hsl).
containerBorderRadius
string0.75remBorder radius of the container (CSS value).
containerMaxWidth
string28remMaximum width of the container (CSS value).
headerBorderColor
string#f4f4f5Border color of the header section (hex, rgb, or hsl).
activeTabTextColor
string#2563ebText color of active tabs (hex, rgb, or hsl).
inactiveTabTextColor
string#a1a1aaText color of inactive tabs (hex, rgb, or hsl).
tabPadding
string1remPadding of tab buttons (CSS value).
tabFontSize
string0.875remFont size of tab labels (CSS value).
tabFontWeight
string600Font weight of tab labels (CSS value).
contentBgColor
stringtransparentBackground color of content area (hex, rgb, or hsl).
contentTextColor
string#71717aText color of content area (hex, rgb, or hsl).
contentHeight
string10remHeight of content area (CSS value).
contentPadding
string2remPadding of content area (CSS value).
springStiffness
number300Spring animation stiffness.
springDamping
number30Spring animation damping.
Swipe (Mobile) - Uilora Tabs