# Dotfiles and build names

> Icons read from names such as .env.local, Dockerfile and Makefile, which carry no usual extension.

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

- Page, with a live preview: https://shadcn.exchange/r/reui/c-file-type-15
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-file-type-15-light-5e57c9474abfc00d.png
- Registry item: https://reui.io/r/new-york-v4/c-file-type-15.json
- Listed: 2026-10-15, source last changed 2026-10-15

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-file-type-15.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-15.tsx`

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

// Names as a repository lists them. Most have no extension of their own, or
// one no type owns (".local"), and getFileType still reads the type from the
// whole name: Dockerfile, .env.local, .gitignore.
const FILES = [
  ".env.local",
  ".gitignore",
  ".dockerignore",
  "Dockerfile",
  "Makefile",
  "wrangler.toml",
  "schema.prisma",
  "main.tf",
  "App.vue",
  "schema.graphql",
  "train.ipynb",
  "model.safetensors",
]

export function Pattern() {
  return (
    <div className="@container mx-auto w-full max-w-lg">
      <ul
        aria-label="Repository files"
        className="grid gap-x-6 gap-y-3 @md:grid-cols-2"
      >
        {FILES.map((name) => (
          <li key={name} className="flex min-w-0 items-center gap-3">
            <FileType type={getFileType(name)} />
            <span className="truncate text-sm" title={name}>
              {name}
            </span>
          </li>
        ))}
      </ul>
    </div>
  )
}
```
