Containers and layout
Promo card
tinted offer/nudge card · circular arrow CTA, dismiss X, generated art · one per screen
function PromoCardDemo() { const [dismissed, setDismissed] = React.useState(false); return ( <View className="w-full gap-3"> {dismissed ? ( <Button size="sm" variant="outline" onPress={() => setDismissed(false)}> <Text>Bring it back</Text> </Button> ) : ( <PromoCard title="Earn more on your everyday balance" body="Set up a direct deposit and unlock a higher rate. Terms apply." action={{ label: 'Learn about the higher rate', onPress: () => {} }} onDismiss={() => setDismissed(true)} seed="promo-rate" /> )} <PromoCard title="Your statement is ready" body="March 2026 is available to download." tone="muted" seed="promo-statement" /> </View> );}Usage
At most one per screen, and dismissible whenever it is promotional rather than required. The art is generated from the seed, so it needs no asset.
API
<PromoCard title body? action? onDismiss? tone? seed? icon? />Get it
Already in every copy of the native kit:
import { PromoCard } from '@/components/kit/promo-card';Details
- Exports
PromoCard- Packages
- lucide-react-native@^1.21.0
- Installs with
- @halftone-native/icon, @halftone-native/lib-haptics, @halftone-native/lib-utils, @halftone-native/placeholder, @halftone-native/text
- Also searched as
- banner, upsell, announcement, offer, nudge
- Registry JSON
- /r/native/promo-card.json
function PromoDemo() { const [open, setOpen] = React.useState(true); return ( <div className="flex w-80 max-w-full flex-col gap-3"> {open ? ( <PromoCard title="Invite your accountant" body="They get read-only access to invoices and exports." action={{ label: 'Invite your accountant', onClick: () => toast('Would open the invite') }} onDismiss={() => setOpen(false)} /> ) : ( <Button variant="outline" size="sm" className="self-start" onClick={() => setOpen(true)}> Show the card again </Button> )} <PromoCard tone="success" icon={GiftIcon} title="Refer a friend, get £50" action={{ onClick: () => toast('Would open referrals') }} /> </div> );}Usage
At most one per page, and dismissible whenever it is promotional rather than required. The art is generated from the seed.
API
<PromoCard title body? action? onDismiss? tone? seed? icon? />Get it
Already in every copy of the web kit:
import { PromoCard } from '@/components/kit/promo-card';Details
- Exports
PromoCard- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Installs with
- @halftone-web/lib-link, @halftone-web/placeholder
- Also searched as
- banner, upsell, announcement, offer, nudge
- Registry JSON
- /r/web/promo-card.json
Agents: the whole registry is at /llms.txt.