Skip to Content
Liquid Glass UI
Components

Carousel

Embla-powered carousel with circular Apple 27 Liquid Glass navigation buttons (glass secondary) by default, supporting horizontal and vertical orientations.

Fully compatible with the standard shadcn/ui JSX API (Carousel / CarouselContent / CarouselItem / CarouselPrevious / CarouselNext, powered by Embla Carousel):

  • Liquid Glass navigation buttons: CarouselPrevious and CarouselNext default to circular glass + secondary buttons; pass glass={false} to switch to solid.
  • Orientation: Supports orientation="horizontal" | "vertical".
apple-liquid-ui/preview/carousel-demo
MacBook · 16:10

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/carousel

Usage

import {
  Carousel,
  CarouselContent,
  CarouselItem,
  CarouselNext,
  CarouselPrevious,
} from '@/components/ui/carousel';

export function Example() {
  return (
    <Carousel className="max-w-xs">
      <CarouselContent>
        <CarouselItem>1</CarouselItem>
        <CarouselItem>2</CarouselItem>
      </CarouselContent>
      <CarouselPrevious />
      <CarouselNext />
    </Carousel>
  );
}

Language & Text

Carousel accepts locale and messages, which apply to all of its parts and the overlays it opens and win over the global <LiquidGlassProvider locale messages>. To override the text globally, put it under messages.carousel on the provider. See Liquid Glass → Global settings.

PropTypeDescription
localeLiquidGlassLocaleInputUI language of this component (any BCP 47 tag; unsupported ones fall back to English)
messagesPartial<CarouselMessages>Text overrides, merged over the built-in text and the global messages.carousel
KeyBuilt-in text (English)
previousPrevious slide
nextNext slide

On this page