# 21:9 ultrawide aspect ratio

> 21:9 ultrawide aspect ratio

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

- Page, with a live preview: https://shadcn.exchange/r/reui/c-aspect-ratio-4
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-aspect-ratio-4-light-96e76abfee989de6.png
- Registry item: https://reui.io/r/new-york-v4/c-aspect-ratio-4.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-aspect-ratio-4.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: `aspect-ratio`

## Files

### `c-aspect-ratio-4.tsx`

```tsx
import { AspectRatio } from "@/components/ui/aspect-ratio"

export function Pattern() {
  return (
    <div className="w-full max-w-md">
      <AspectRatio
        ratio={21 / 9}
        className="bg-muted rounded-xl overflow-hidden border"
      >
        <img
          src="https://picsum.photos/1000/800?grayscale&random=4"
          alt="21:9"
          width={1000}
          height={800}
          className="h-full w-full object-cover"
        />
      </AspectRatio>
    </div>
  )
}
```
