Content
Surface
A coloured, rounded background — plain or glass.
iOSSwiftUI VStack in a GlassEffectContainerAndroidCompose SurfaceRenders in a Screen or an Island


Import
ts
import {Surface} from '@hzblj/kara-ui'Props
A container padded s16 and rounded large unless told otherwise — a SwiftUI VStack on iOS, Material's Surface around a Column on Android.
Also takes the native `sx` props.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Stacked vertically, from the leading edge. |
| glass | boolean | false | iOS wraps the content in a |
| testID | string | — | Test identifier, forwarded to the native view. |
children
ReactNodeStacked vertically, from the leading edge.
glassfalse
booleaniOS wraps the content in a GlassEffectContainer; Android raises it to a tonal elevation of 3.
testID
stringTest identifier, forwarded to the native view.
Platform notes
glassreaches for iOS 26 glass and a Material 3 tonal surface on Android — the two do not look alike, and are not meant to.

