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:
CarouselPreviousandCarouselNextdefault to circularglass+secondarybuttons; passglass={false}to switch to solid. - Orientation: Supports
orientation="horizontal" | "vertical".
Installation (Shadcn Registry)
npx shadcn@latest add @apple-liquid/carouselUsage
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.
| Prop | Type | Description |
|---|---|---|
locale | LiquidGlassLocaleInput | UI language of this component (any BCP 47 tag; unsupported ones fall back to English) |
messages | Partial<CarouselMessages> | Text overrides, merged over the built-in text and the global messages.carousel |
| Key | Built-in text (English) |
|---|---|
previous | Previous slide |
next | Next slide |
Card
Responsive Apple Liquid Glass container card with isolated-layer glass by default (preserving internal Switch/Slider droplet refraction), edge optical refraction, opaque glass={false} mode, and automatic Over-Glass nested grouping.
Chart
Apple-styled Recharts data visualizations featuring system color palettes, hairline gridlines, Liquid Glass tooltips, and dot legends.