Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA floating bottom tab bar made of refractive glass: a lens slides between tabs on a real spring, stretches with its velocity and magnifies the icon under it, and can be dragged to scrub across tabs. Scrolling the content down folds the bar into a compact capsule that expands again on scroll up, and the search tab morphs into a full search field. Arrow keys, Home and End move between tabs, browsers without SVG backdrop filters get frosted blur, and reduced motion snaps every transition.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { GlassTabBarScene } from "@/components/hyperblur-pro/glass-tab-bar"
<GlassTabBarScene />
const feed = useRef(null);
<div ref={feed} style={{ overflow: "auto" }}>...</div>
<GlassTabBar value={tab} onChange={setTab} scrollTarget={feed} onSearch={setQuery} appearance="auto" />| Prop | Type | Default | Description |
|---|---|---|---|
| backdrop | string | "https://images.unsplash.com/photo-1501785888041-af3ef285b470" | GlassTabBarScene: blurred photo behind the demo screens. |
| photos | string[] | 8 Unsplash landscapes | GlassTabBarScene: photos used in the scrolling feeds. |
| title / subtitle | string | "A tab bar made of glass." | GlassTabBarScene: heading and paragraph beside the screens. |
| showDark | boolean | true | GlassTabBarScene: show a second screen in dark appearance with search open. |
| tabs | { id, label, icon?, badge? }[] | Today, Explore, Saved, Inbox | GlassTabBar: tabs with your own icons and optional badge counts. |
| value / defaultValue / onChange | string | first tab | GlassTabBar: controlled or uncontrolled selected tab id. |
| scrollTarget / compact | RefObject<HTMLElement> / boolean | undefined | GlassTabBar: element whose scroll direction folds the bar, or force the compact capsule. |
| search / searchOpen / onSearch | boolean / boolean / (q: string) => void | true | GlassTabBar: show the search tab, control whether it is open, and read the query. |
| accent | string | "#0a84ff" | Color of the magnified active icon and focus rings. |
| appearance | "light" | "dark" | "auto" | "light" | GlassTabBar: bright or smoked glass, or follow the system. |
| refraction | number | 1 | Strength of the glass edge lens. 0 gives plain frosted glass. |
Source code is included in Pro and above