Skip to content
nexubDesign System
v2.4.0

Components · Mobile only · Layout

Carousel

AlphaiOS & Android

Paged horizontal list with snapping; pair with PageIndicator.

Usage

@nexub/react-native
import { Carousel } from '@nexub/react-native';

<Carousel data={cards} renderItem={({ item }) => <Card>…</Card>} onIndexChange={setI} />

Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.

On device

Carousel on iPhone (iOS simulator)

iPhone (iOS simulator)

Carousel on Pixel (Android emulator)

Pixel (Android emulator)

Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.

Carousel props

Carousel props (React Native)
PropTypeDefaultDescription
datarequiredreadonly T[]——
renderItemrequiredListRenderItem<T>——
widthnumber—Page width.
onIndexChange(index: number) => void——
styleStyleProp<ViewStyle>——