Docs
File Preview

File Preview

Display a file.

cat.png

Installation

pnpm dlx shadcn@bonjour

Usage

import {
  FilePreview
} from "@/components/ui/file-preview"
<FilePreview
    file={file}
    height="40px"
    width="40px"
    className="rounded-lg"
/>