# Vertical carousel orientation

> Vertical carousel orientation

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-carousel-2).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-carousel-2
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-carousel-2-light-831b76d5c0b2eb79.png
- Registry item: https://reui.io/r/new-york-v4/c-carousel-2.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-carousel-2.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `card`, `carousel`

## Files

### `c-carousel-2.tsx`

```tsx
import { Card } from "@/components/ui/card"
import {
  Carousel,
  CarouselContent,
  CarouselItem,
  CarouselNext,
  CarouselPrevious,
} from "@/components/ui/carousel"

export function Pattern() {
  return (
    <div className="flex w-full items-center justify-center p-6">
      <Carousel
        opts={{
          align: "start",
        }}
        orientation="vertical"
        className="w-full max-w-xs"
      >
        <CarouselContent className="-mt-1 h-[325px]">
          {Array.from({ length: 5 }).map((_, index) => (
            <CarouselItem key={index} className="basis-1/2 pt-1">
              <div className="p-1">
                <Card className="relative h-[145px] overflow-hidden border-0 p-0">
                  <img
                    src={`https://picsum.photos/600/300?grayscale&random=${index + 10}`}
                    alt={`Slide ${index + 1}`}
                    width={600}
                    height={300}
                    className="h-full w-full object-cover"
                  />
                </Card>
              </div>
            </CarouselItem>
          ))}
        </CarouselContent>
        <CarouselPrevious />
        <CarouselNext />
      </Carousel>
    </div>
  )
}
```
