material3

fun GlassStyle.material3(containerColor: Color = MaterialTheme.colorScheme.surface, tint: Color? = null): GlassStyle

Returns a Material 3 Glass Style with this Style's writes applied after the theme defaults.

The default containerColor comes from the current MaterialTheme. A null tint omits the theme tint write. This Style can override either value. The returned Style is reused while this Style, containerColor, and tint are unchanged.