ScrollView
Native macOS vertical or horizontal scrolling container with inertial trackpad physics — ideal for todo lists, news feeds, world clocks, and activity logs.
Signature#
SIGNATURE
<ScrollView axis="vertical" height={108}>
<VStack spacing={6}>
<Row title="Design" time="10:00" />
<Row title="SDK docs" time="13:30" />
<Row title="Test build" time="15:00" />
<Row title="Release" time="17:00" />
</VStack>
</ScrollView>
Scrollable · vertical
Interactive
Design review10:00
Ship SDK docs13:30
Test build15:00
Release notes17:00
Evening run19:30
Props#
Inherits all StyleProps:
axisstringDefault "vertical"- Scroll direction:
"vertical"(wrap aVStack) or"horizontal"(wrap anHStack). showsIndicatorsbooleanDefault false- Whether to display native macOS scrollbars.
Example: Horizontal Card Strip#
TSX
<ScrollView
axis="horizontal"
showsIndicators={false}
>
<HStack spacing={8}>
<CityChip city="Shanghai" temp="24°" />
<CityChip city="Tokyo" temp="19°" />
<CityChip city="London" temp="12°" />
<CityChip city="New York" temp="16°" />
</HStack>
</ScrollView>
Scrollable · horizontal
Interactive
Shanghai24°
Tokyo19°
London12°
New York16°