Containers and layout
Sticky bottom bar
safe-area action bar under a ScrollView (pb-32)
function StickyBottomBarDemo() { return ( <View className="border-border w-full gap-3 overflow-hidden rounded-lg border"> <View className="bg-muted-subtle h-16 items-center justify-center"> <Text className="text-muted-foreground text-sm">scrolling content</Text> </View> <StickyBottomBar className="pb-3"> <Button variant="outline"> <Text>Sell</Text> </Button> <Button> <Text>Buy</Text> </Button> </StickyBottomBar> </View> );}Usage
Render after the ScrollView; give the scroll content pb-32. Children share the width equally.
API
<StickyBottomBar transparent?>{buttons}</StickyBottomBar>Get it
Already in every copy of the native kit:
import { StickyBottomBar } from '@/components/kit/sticky-bottom-bar';Details
- Exports
StickyBottomBar- Packages
- react-native-safe-area-context@~5.7.0
- Installs with
- @halftone-native/lib-utils
- Also searched as
- cta bar, footer actions, safe area
- Registry JSON
- /r/native/sticky-bottom-bar.json
<div className="bg-background relative h-64 w-80 max-w-full overflow-y-auto rounded-xl border"> <div className="flex flex-col gap-3 p-5"> <p className="font-semibold">Review payment</p> {['To', 'Amount', 'Fee', 'Reference', 'Arrives', 'From'].map((l) => ( <div key={l} className="flex justify-between border-b py-2 text-sm"> <span className="text-muted-foreground">{l}</span> <span>—</span> </div> ))} </div> <StickyBottomBar> <Button variant="outline">Cancel</Button> <Button onClick={() => toast.success('Payment sent')}>Send £2,310</Button> </StickyBottomBar></div>Usage
Put it last inside the scrolling element. Children share the width equally. Mostly a phone-width pattern.
API
<StickyBottomBar transparent?>{buttons}</StickyBottomBar>Get it
Already in every copy of the web kit:
import { StickyBottomBar } from '@/components/kit/sticky-bottom-bar';Details
- Exports
StickyBottomBar- Packages
- cn@^0.5.2
- Also searched as
- cta bar, footer actions, safe area
- Registry JSON
- /r/web/sticky-bottom-bar.json
Agents: the whole registry is at /llms.txt.