Skip to content
SENVENLI UI

Carousel

Pages through a set of images with previous/next and optional thumbnails; never auto-advances.
Product photos
import { Carousel, CarouselSlide } from "@senvenli/react/display";

Examples

With thumbnails

A strip under the frame picks an image directly; the dots then only indicate.

Controlled

The page owns the shown image, here to caption it.

Any content per slide

`CarouselSlide` children: cards with a heading and text instead of photos.

Guidelines

When to use it

  • A few photos of one item.

Use something else when

Accessibility

Keyboard

KeysWhat happens
Arrow left / rightMove to the previous or next image.

Built in

  • The position is announced as "Image N of M".

You provide

  • Meaningful alt text for each image.
  • With CarouselSlide children: real alt text on images inside slides, and a label per slide when thumbnails are shown.

API reference

CarouselSlide

id
string

Stable key; the position by default.

label
string

The slide's name for its thumbnail ("Front view"); the position by default.

thumbnail
string

An image URL for the thumbnail strip.

childrenRequired
React.ReactNode

What the page shows: an image, a card, a quote. It fills the frame.