# Common formats

> The formats people share most, in their brand colors.

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

- Page, with a live preview: https://shadcn.exchange/r/reui/c-file-type-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-file-type-1-light-121ae21f9643efa5.png
- Registry item: https://reui.io/r/new-york-v4/c-file-type-1.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-file-type-1.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: `@reui/file-type`

## Files

### `c-file-type-1.tsx`

```tsx
import {
  FileType,
  type FileTypeName,
} from "@/components/reui/file-type"

const formats = [
  "pdf",
  "docx",
  "xlsx",
  "pptx",
  "jpg",
  "mp4",
  "mp3",
  "zip",
  "fig",
  "html",
] as const satisfies readonly FileTypeName[]

export function Pattern() {
  // No captions: each icon names itself ("PDF file", "MP4 file"), so a screen
  // reader still hears every format.
  return (
    <div className="mx-auto grid w-fit grid-cols-5 gap-x-4 gap-y-6">
      {formats.map((type) => (
        <FileType key={type} type={type} />
      ))}
    </div>
  )
}
```
