AppGlassContainer

Groups glass panes: it owns the spacing they need to breathe, and hands each child the geometry to sit concentric to it. The web answer to GlassEffectContainer.

Install: pnpm add-component AppGlassContainer

Concentric by construction

Three panes in a container. Turn concentric off and drag the radius sliders apart to watch the corners stop agreeing — the inner curve and the outer curve visibly fight. On, the child takes the container radius less the padding between them, which is the only value at which the arcs stay parallel.

What it does, and what it does not

The adoption guide asks for a container in two separate places, and this covers both: spacing, because glass needs room and crowding it reads as noise; and shape, because a pane cannot work out its own concentric radius — it does not know what it is inside. What it deliberately does not do is Apple’s fluid morph, where adjacent glass shapes merge into one another mid-animation. That needs a shared render target the web does not offer, and faking it with transforms would look worse than not doing it.

Glass on glass is not what this is for

Grouping means siblings. Nesting one pane inside another is called out in the guide as visual noise — the material is meant to be a single functional layer floating above the content, not a stack of them. A nested pane logs a development warning rather than failing silently, because the result usually looks merely muddy rather than obviously broken.

API