Glass Floating

Glassmorphism tabs with floating effect.

tabsglassfloatingglassmorphism

Props

Customize the component with these props

PropertyTypeDefaultDescription
tabs
TabItem[][{id: '1', label: 'Option 1'}, ...]Array of tab items with id and label.
backgroundImage
stringurlBackground image URL for the container.
defaultActive
number0Index of the initially active tab.
backgroundColor
stringtransparentBackground color of the component (hex, rgb, or hsl).
containerHeight
string16remHeight of the container (CSS value).
containerWidth
string100%Width of the container (CSS value).
containerMaxWidth
string28remMaximum width of the container (CSS value).
borderRadius
string1remBorder radius of the container (CSS value).
buttonBgColor
stringtransparentBackground color of tab buttons (hex, rgb, or hsl).
buttonHoverBgColor
stringrgba(255,255,255,0.2)Background color of buttons on hover (hex, rgb, or hsl).
buttonTextColor
string#ffffffText color of tab buttons (hex, rgb, or hsl).
activeIndicatorBgColor
stringrgba(255,255,255,0.3)Background color of the active indicator (hex, rgb, or hsl).
buttonBorderRadius
string9999pxBorder radius of buttons (CSS value).
buttonPadding
string0.5rem 1remPadding of tab buttons (CSS value).
fontSize
string0.75remFont size of tab labels (CSS value).
fontWeight
stringboldFont weight of tab labels (CSS value).