Skip to content
  • Android
  • iOS
  • Web

Carousel

Swipe or scroll through a set of pages.

Engine API NCarouselnayan-ui/components

Live examples

Example.tsx

Attributes

NCarousel attributes
NameTypeDefaultDetails
childrenReactNodeOptional
valuenumberOptional
defaultValuenumberOptional
onValueChange((value: number) => void)Optional
orientation"horizontal" | "vertical"OptionalDirection of swipe/paging; the same Rust state owns snapping and accessibility.
autoPlaybooleanOptionalAdvance while visible and enabled. Pause this when the host screen loses focus.
intervalnumberOptionalMilliseconds between slides. Default: 5000.
showIndicatorsbooleanOptional
indicatorPlacement"below" | "overlay"Optional`overlay` draws the page dots over the slides instead of in a 44-point strip below them.
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.

Tags