Image Backed

Tabs with background images that change on selection.

tabsimagebackgroundanimated

Props

Customize the component with these props

PropertyTypeDefaultDescription
tabs
TabItem[][{id: '1', label: 'Scene 1', image?: url}, ...]Array of tab items with id, label, and optional image.
images
string[][url1, url2, ...]Fallback array of image URLs if tabs don't have images.
defaultActive
number0Index of the initially active tab.
backgroundColor
stringtransparentBackground color of the component (hex, rgb, or hsl).
containerBgColor
string#18181bBackground color of the container (hex, rgb, or hsl).
containerHeight
string10remHeight of the container (CSS value).
containerWidth
string100%Width of the container (CSS value).
containerMaxWidth
string32remMaximum width of the container (CSS value).
borderRadius
string1.5remBorder radius of the container (CSS value).
imageOpacity
number0.5Opacity of background images (0-1).
activeButtonBgColor
string#ffffffBackground color of active buttons (hex, rgb, or hsl).
activeButtonTextColor
string#000000Text color of active buttons (hex, rgb, or hsl).
activeButtonScale
number1.1Scale of active buttons.
inactiveButtonTextColor
stringrgba(255,255,255,0.7)Text color of inactive buttons (hex, rgb, or hsl).
inactiveButtonHoverTextColor
string#ffffffText color of inactive buttons on hover (hex, rgb, or hsl).
buttonBorderRadius
string9999pxBorder radius of buttons (CSS value).
buttonPadding
string0.5rem 1.5remPadding of tab buttons (CSS value).
fontSize
string1remFont size of tab labels (CSS value).
fontWeight
stringboldFont weight of tab labels (CSS value).
transitionDuration
number0.3Duration of image transitions in seconds.
Image Backed - Uilora Tabs