Components / Composition
Carousel
A sideways list of peer items, such as citations.
@fabrials/ui
Installation
Import the control from
@fabrials/ui, after setting the app up.TypeScript import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext } from "@fabrials/ui";Or install it under shadcn's name, so code that imports
@/components/ui/carouselgets this control. See shims.npx shadcn@latest add @fabrials/carousel
API reference
| Prop / export | Type | Description |
|---|---|---|
orientation | horizontal | vertical | Scroll direction. |
Behavior
Previous and next are buttons. Arrow keys move the list when it has focus.
Accessibility
Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.