- Android
- iOS
- Web
Carousel
Swipe or scroll through a set of pages.
Engine API NCarouselnayan-ui/components
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| children | ReactNode | Optional | |
| value | number | Optional | |
| defaultValue | number | Optional | |
| onValueChange | ((value: number) => void) | Optional | |
| orientation | "horizontal" | "vertical" | Optional | Direction of swipe/paging; the same Rust state owns snapping and accessibility. |
| autoPlay | boolean | Optional | Advance while visible and enabled. Pause this when the host screen loses focus. |
| interval | number | Optional | Milliseconds between slides. Default: 5000. |
| showIndicators | boolean | Optional | |
| indicatorPlacement | "below" | "overlay" | Optional | `overlay` draws the page dots over the slides instead of in a 44-point strip below them. |
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |