Back to Components
Components
File Preview
File list with type icons, file metadata, and download actions.
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/file-preview.tsx
Installation
Using shadcn CLI
npx shadcn add file-preview --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge