Glass Floating

Glassmorphism tabs with floating effect.

Main Features of Glass Floating

How to Use Glass Floating in Next.js

Installation Guide for Glass Floating

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).

When to Use

Ideal for high-end digital agencies, creative portfolios, and Next.js applications that want a premium 'Floating Glass' aesthetic. Use these tabs for an immersive experience with blur effects and light refraction cues.

Best Practices

Maintain consistent spacing within your design system by keeping the tab items organized. Follow React best practices by pairing this with soft, neutral colors. Optimize for performance by managed the amount of blur renders.

Why This Component Matters in Modern UI Development

Glass-based aesthetics communicate digital excellence, sophistication, and high-end craft. This production-ready UI template helpsคุณ build an interface that feels curated and premium, leaving a lasting visual impression on high-value clients.

Frequently Asked Questions

QIs the 'Glass' effect real?

The component uses localized backdrop-filter blur and subtle inner glows (glass-shadows) to simulate light refraction through high-fidelity translucent surfaces.

QCan I change the backdrop?

Absolutely, both the primary 'backgroundColor' (gradient or solid) and the persistent blur intensity are fully configurable to match your digital brand.

QIs it mobile responsive?

The floating tabs adapt their spans and layouts for mobile, ensuring the refractive narrative remains impactful and legible on small screens.

Glass Floating - React Tabs Component | Uilora