Skip to content
View Markdown

SafeAreaInset ​

An accessory that reserves space at a safe edge of its content.

tsx
import { SafeAreaInset, Button, LabeledContent } from '@satinhq/kit'

Example ​

Click Save in the bottom accessory.

Reserve an edge ​

Wrap the main content in SafeAreaInset. Pass the accessory to content and choose top or bottom.

Adjust safe-area layout ​

Use SafeAreaPadding, ContentMargins, SafeAreaBar or IgnoresSafeArea to control content placement. Components consume framework geometry; they do not need viewport-height or raw safe-area CSS.

API ​

Scroll horizontally to read every column.

PropTypeDescription
edge'top' | VerticalEdge`The accessory edge.
contentReactNodeThe accessory.
childrenReactNodeThe content whose safe area changes.
spacingnumberOptional gap between accessory and content.

Related: Quick start, List, Screen.

:::

Satin runs on the Lumen rendering engine and is open source under the MIT License.