Navigation
Pager dots
Full-width slides: HorizontalPager with itemWidth = screen width. The dots are bound to the pager; use PagerDots alone only for a custom pager.
function PagerDotsDemo() { const { width } = useWindowDimensions(); const slides = ['Welcome', 'Set up your profile', 'Invite your team', 'You are ready']; return ( <View className="-mx-5 self-stretch"> <HorizontalPager itemWidth={width - 52} gap={12}> {slides.map((t, i) => ( <View key={t} className="bg-card border-border h-40 items-center justify-center rounded-xl border px-6"> <Text className="text-lg font-semibold">{t}</Text> <Text className="text-muted-foreground text-sm">Swipe · slide {i + 1} of {slides.length}</Text> </View> ))} </HorizontalPager> </View> );}Usage
Full-width slides: HorizontalPager with itemWidth = screen width. The dots are bound to the pager; use PagerDots alone only for a custom pager.
API
<PagerDots count activeIndex /> — HorizontalPager renders them for youGet it
Already in every copy of the native kit:
import { PagerDots } from '@/components/kit/pager-dots';Details
- Exports
PagerDots- Installs with
- @halftone-native/lib-utils
- Also searched as
- page indicator, carousel dots, onboarding slides, full-width pager
- Registry JSON
- /r/native/pager-dots.json
<div className="flex flex-col items-center gap-4"> <PagerDots count={4} activeIndex={0} /> <PagerDots count={4} activeIndex={2} /></div>Usage
The dots are bound to the pager; use PagerDots alone only for a custom pager.
API
<PagerDots count activeIndex />Get it
Already in every copy of the web kit:
import { PagerDots } from '@/components/kit/pager-dots';Details
- Exports
PagerDots- Packages
- cn@^0.5.2
- Also searched as
- page indicator, carousel dots, onboarding slides
- Registry JSON
- /r/web/pager-dots.json
Agents: the whole registry is at /llms.txt.