ValyroUI Русская версия

Floating Tab Bar

Floating glass tab bar. Pro · Effects › Glass

An iOS 26 floating Liquid Glass tab bar with a selection indicator that stretches like a drop of liquid as it slides between tabs, an optional accessory button, and a compact mode while content scrolls. Accessibility pattern: a <nav> landmark of links/buttons with aria-current="page", not an ARIA tablist. A tab bar switches between top-level destinations that own their own content, scroll position and history; the tabs pattern (tablist + tabpanel) is for panels within one page. Items are reached with Tab like any navigation.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add floating-tab-bar
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { FloatingTabBar } from 'valyro-ui-pro';

Props

PropTypeDefault
items *FloatingTabBarItem[]Tabs in order, each an icon over a label; without a value the first enabled one is current.
valuestringControlled value; use with onValueChange.
defaultValuestringInitial value when uncontrolled.
onValueChange(value: string) => voidCalled with the new value when it changes.
accessoryFloatingTabBarAccessoryA separate circular button beside the bar, such as Search.
scrollContainerRefObject<HTMLElement | null> | 'window'Scrolling this container (or the window) down minimizes the bar to a compact pill; scrolling up, reaching the top or focusing the bar with the keyboard expands it.
minimizedbooleanControlled minimized; use with onMinimizedChange.
defaultMinimizedbooleanfalseInitial minimized when uncontrolled.
onMinimizedChange(minimized: boolean) => voidCalled with the new minimized when it changes.
position'fixed' | 'absolute' | 'static''fixed'fixed floats over the viewport, absolute over the nearest positioned ancestor; both keep clear of safe-area insets.
labelsPartial<FloatingTabBarLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Morphing Capsule · Next: Aurora Background · All Effects