Navigation
Page header
the in-body page title + intro · one per screen, first child of the ScrollView
function ScreenHeaderDemo() { return ( <View className="w-full gap-6"> <ScreenHeader title="Quick access" subtitle="If you have left the app for more than 15 minutes you will need to sign in again. Make it easy with a quick access option." /> <ScreenHeader title="Accounts" size="large" action={<Badge variant="secondary"><Text>4 open</Text></Badge>} /> </View> );}Usage
One per screen, as the first child of the ScrollView. Section titles further down the page are SectionHeader, not this.
API
<ScreenHeader title subtitle? action? size="default|large" />Get it
Already in every copy of the native kit:
import { ScreenHeader } from '@/components/kit/screen-header';Details
- Exports
ScreenHeader- Installs with
- @halftone-native/lib-utils, @halftone-native/text
- Also searched as
- page title, heading, hero title, intro
- Registry JSON
- /r/native/screen-header.json
<PageHeader className="w-full" eyebrow="Billing" title="Invoices" description="Everything you have billed, newest first." actions={ <> <Button variant="outline">Export</Button> <Button> <PlusIcon /> New invoice </Button> </> }/>API
<PageHeader eyebrow? title description? actions? />Get it
Already in every copy of the web kit:
import { PageHeader } from '@/components/kit/page-header';Details
- Exports
PageHeader- Packages
- cn@^0.5.2
- Also searched as
- title, heading
- Registry JSON
- /r/web/page-header.json
Agents: the whole registry is at /llms.txt.