Navigation
Section header
title + action, outside the card
function SectionHeaderDemo() { return ( <View className="w-full gap-4"> <SectionHeader title="Recent activity" action="See all" onAction={() => {}} /> <SectionHeader title="Without action" /> </View> );}Usage
Sits outside the card it introduces.
API
<SectionHeader title action? onAction? />Get it
Already in every copy of the native kit:
import { SectionHeader } from '@/components/kit/section-header';Details
- Exports
SectionHeader- Installs with
- @halftone-native/lib-utils, @halftone-native/text
- Also searched as
- title, see all, heading row
- Registry JSON
- /r/native/section-header.json
<div className="flex w-full max-w-md flex-col gap-3"> <SectionHeader title="Recent invoices" action="See all" onAction={() => toast('Would open invoices')} /> <ListGroup> <ListRow title="Lumen Labs" subtitle="INV-1044 · Overdue" value="£2,310.00" /> <ListRow title="Northwind" subtitle="INV-1042 · Paid" value="£1,240.00" /> </ListGroup></div>Usage
Sits outside the card it introduces.
API
<SectionHeader title action? onAction? actionHref? level? />Get it
Already in every copy of the web kit:
import { SectionHeader } from '@/components/kit/section-header';Details
- Exports
SectionHeader- Packages
- cn@^0.5.2
- Installs with
- @halftone-web/lib-link
- Also searched as
- title, see all, heading row
- Registry JSON
- /r/web/section-header.json
Agents: the whole registry is at /llms.txt.