Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
LayoutReact Native

Surface

Compose content on semantic native backgrounds with shared padding and radius roles.

Public APILumenSurfaceReact Native

Native example

Use Surface

Use surfaces to express hierarchy through semantic canvas, surface, muted, and strong roles. Do not hardcode a parallel set of background colors.

View verified React Native runtime capture
Surface rendered in the Expo web renderer Lumen playground
Verified runtime captureExpo web renderer
tsx
<LumenSurface tone="muted" padding="lg">
  <LumenText>Workspace</LumenText>
</LumenSurface>

Reference

Public API

The primary shared and platform-specific options exposed by LumenSurface.

APIValues or typeDefaultDescription
tonecanvas · surface · muted · strongsurfaceSelects the semantic background role.
paddingnone · sm · md · lgmdApplies generated platform spacing.
radiusnone · sm · md · lgmdApplies a generated corner radius.
styleNative composition APIComposes or lays out the surface with native APIs.

Native behavior

Design and accessibility

When to use it

Use surfaces to express hierarchy through semantic canvas, surface, muted, and strong roles. Do not hardcode a parallel set of background colors.

Accessibility

A surface does not add an accessibility role by itself. Descendant controls and content retain their native semantics.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives