Ravox KitSurfaces

Carousel

Built on the browser's scroll-snap: touch, inertia and trackpad work as in a normal scroll. Arrows, dots, keyboard, mouse drag, several slides at a time and autoplay that pauses on hover and focus and doesn't even start with reduced motion.

AbrigoPousada na serra
BrasaHamburgueria
ConsultaClínica médica
CanteiroConstrutora
ComandaPainel de restaurante
CadernoEscola de idiomas

Settings

Toggles

Examples

Several at a time, depending on the screen

AbrigoPousada na serra
BrasaHamburgueria
ConsultaClínica médica
CanteiroConstrutora
ComandaPainel de restaurante
CadernoEscola de idiomas

Notices with autoplay and pause

Loja aberta

Designs a R$ 49 ou todos por R$ 297 no ano, com Pix na hora.

Ravox Kit

Componentes em português, instalados pelo shadcn com um comando.

Comunidade

Mande o seu componente: a moderação responde em até 2 dias úteis.

Arrows on top, custom counter

Installation

The command creates components/ui/carousel.tsx in your project and installs the theme with it. The file is yours: edit it as you like.

npx @ravox-ui/cli add carousel

Props

PropTypeDefaultDescription
labelstring—Carousel name for screen readers. Required (Carousel).
slidesPerViewnumber1Slides visible together. Per screen size, use classes: [--slides-per-view:1] md:[--slides-per-view:3] (Carousel).
gapnumber16Space between slides, in px (Carousel).
loopbooleanfalseFrom the last back to the first, and vice versa (Carousel).
autoplaynumber—Advances on its own every given number of ms. Pauses with the mouse over it or focus inside, and turns on loop (Carousel).
onSlideChange(page: number) => void—When the page changes, starting from 0 (Carousel).
CarouselContent / CarouselItemComponentProps<"div">—The scrolling track (focusable: ← → Home End) and each slide, read as "2 of 5".
CarouselPrevious / CarouselNext / CarouselDots / CarouselPauseComponentProps<"button">—The controls. Place them anywhere inside the Carousel; CarouselPause only appears with autoplay.
useCarousel(){ page, pageCount, goTo, prev, next }—To build your own controls (thumbnails, counter).

More in Surfaces