On this page

iOS 26 draws floating controls on Liquid Glass: a material that refracts and tints the content behind it. The kit uses it where iOS does, in the navigation layer that floats above content, and draws an opaque token surface everywhere else.

Where glass is used

Glass belongs to floating chrome: buttons and toolbars over content, toasts, sheet handles, segmented pills, popovers and system overlays. It never sits behind body text in the content layer, where it would cost legibility. The table below is generated from every family marked glass: true in packages/nitro-ui-sdk/src/catalog.ts, alongside whether the family exports runtime implementations in this build:

FamilyIn this buildGlass behavior
ButtonImplementedGlass and prominent-glass variants wrap MaterialView; opaque token fallback when glass is off.
IconButtonImplementedFloating glass variant wraps MaterialView; opaque token fallback when glass is off.
CloseButtonImplementedFloating dismiss chrome wraps MaterialView; opaque token fallback when glass is off.
ToggleButtonImplementedFloating toggle variant wraps MaterialView; opaque token fallback when glass is off.
FloatingActionButtonImplementedFloating action surface wraps MaterialView; opaque token fallback when glass is off.
SearchFieldImplementedFloating search bar surface wraps MaterialView; opaque token fallback when glass is off.
SegmentedControlImplementedFloating segmented pill follows ThemeProvider's material with an opaque fallback.
MenuImplementedTrigger supports MaterialView; presented UIKit menus read system material directly from iOS.
TabsImplementedFloating tab strip surface wraps MaterialView; opaque token fallback when glass is off.
DialogImplementedTrigger supports MaterialView; presented UIKit alerts read system material directly from iOS.
ActionSheetImplementedTrigger supports MaterialView; presented UIKit action sheets read system material directly from iOS.
SheetImplementedTrigger and sheet handle follow ThemeProvider's material with an opaque fallback.
PopoverImplementedPasses ThemeProvider's material to its native popover host (system glass when on, opaque overlay fill when off).
ToastImplementedFloating toast pill follows ThemeProvider's material with an opaque fallback.
CardImplementedGlass card variant wraps MaterialView; opaque token fallback when glass is off.
ToolbarImplementedFloating toolbar container (MaterialView / MaterialGroup) follows ThemeProvider's material with an opaque fallback.

When glass is drawn

ThemeProvider resolves a single material value, which MaterialView, MaterialGroup and kit-rendered glass surfaces read:

material = glass && isLiquidGlassSupported && !reducedTransparency ? "glass" : "opaque";
Input Where it comes from Effect when it fails
glass The glass prop of ThemeProvider (default true) MaterialView, MaterialGroup and kit-rendered glass surfaces draw their opaque fallback.
isLiquidGlassSupported nitro-ui-glass: true on iOS 26 and later Older iOS and Android draw the fallback.
reducedTransparency The reducedTransparency prop, usually the system setting The person asked for less transparency.

In the opaque fallback, MaterialView renders a View whose fill is fallback?.background ?? tint ?? tokens.colors.overlay and whose border color is fallback?.borderColor ?? (tint ? undefined : tokens.colors.border). A tinted view without an explicit fallback.borderColor draws no default hairline. Whenever a fallback border color resolves, MaterialView adds borderWidth: 1 ({ borderWidth: 1, ...layout }), which can shift layout by 1 point per edge unless you pass layout.borderWidth explicitly. Hit areas and accessibility stay on the control inside.

Rule and exceptions: turning glass={false} on ThemeProvider switches kit-rendered glass surfaces to their opaque token fallback everywhere. Families that read the system material directly (UIKit menus, alerts and action sheets) follow iOS, not the glass prop; Popover forwards ThemeProvider’s material to its native host (glass={theme.material === "glass"}), so glass={false} replaces its translucent background with tokens.colors.overlay. (Before all component lanes merge into main, the pre-merge baseline of Button does not yet ship glass/glass-prominent variants and pre-merge Toast, Sheet handle and Toolbar check isLiquidGlassSupported && !reducedTransparency directly instead of ThemeProvider.material.)

MaterialView

MaterialView from nitro-ui-sdk/material is the one glass primitive. It renders NitroUI’s LiquidGlassView when the theme’s material is glass, and a plain View with the fallback fill otherwise. It carries no semantics or action; put a labeled control inside it.

import { Icon } from "nitro-ui-sdk/icon";
import { IconButton } from "nitro-ui-sdk/icon-button";
import { MaterialView } from "nitro-ui-sdk/material";
import { useTokens } from "nitro-ui-sdk/theme";

function FloatingShare({ onShare }: { onShare(): void }) {
  const tokens = useTokens();
  return (
    <MaterialView
      interactive
      style={{ cornerRadius: tokens.radius.full }}
      fallback={{ background: tokens.colors.overlay, borderColor: tokens.colors.border }}
    >
      <IconButton.Root
        label="Share"
        onPress={onShare}
        icon={({ color, size }) => <Icon symbol="square.and.arrow.up" color={color} size={size} />}
      />
    </MaterialView>
  );
}
Prop Type Default Description
effect "regular" | "clear" "regular" The glass effect when glass is drawn.
interactive boolean false The glass reacts to touch. Activation stays with the control inside.
tint ColorValue none Tints the glass, such as the accent for a prominent glass button. Also the fallback fill when fallback is not set (with no default hairline border unless fallback.borderColor is given).
fallback { background: ColorValue; borderColor?: ColorValue } overlay fill with border hairline (unless tint is set) The opaque fill and optional border when glass is not drawn. A resolved border color adds borderWidth: 1 unless layout.borderWidth overrides it.
layout, style NitroUI SharedViewProps none Applied in both looks.
gestureRecognizers SharedViewProps["gestureRecognizers"] none Native gesture recognizers forwarded to the glass or fallback view.
isUserInteractionEnabled boolean none Forwarded to the underlying native view.
children ReactNode none Optional content inside the material surface.

MaterialGroup

Nearby glass shapes look best when they merge into one material, as iOS toolbars do. MaterialGroup wraps them in NitroUI’s LiquidGlassContainerView when glass is drawn and in a plain View otherwise. In the fallback, MaterialGroup forwards layout directly without setting a row direction, so pass layout={{ flexDirection: "row", ... }} when you want a horizontal group.

import { MaterialGroup, MaterialView } from "nitro-ui-sdk/material";

<MaterialGroup spacing={12} layout={{ flexDirection: "row", gap: 8 }}>
  <MaterialView interactive>{/* Light / Dark toggle */}</MaterialView>
  <MaterialView interactive>{/* Glass on / off toggle */}</MaterialView>
</MaterialGroup>;

spacing (default 16) is the distance at which shapes start to merge. The example app’s floating theme controls are built this way.

The glass prop and variants

Families built on MaterialView read material from ThemeProvider, so turning glass={false} on ThemeProvider switches their glass surfaces to their opaque fallback. Families that offer glass variants—such as Button’s glass and glass-prominent variants on the actions lane—document their variants and opaque fallbacks on their component pages.

Checking both looks

The example app has a floating switch on every component screen to turn glass on and off, and a launch argument for screenshots:

xcrun simctl launch <device> dev.zietec.nitroui.example -exampleRoute glass-surface -exampleGlass off

Check glass over a busy background (the demos’ glass sections draw a colorful backdrop for this) and check the fallback in both schemes.