OOratiq

Attachment

Ready

File attachment chip.

training-plan.pdf

2.3 MB

session-recording.mp4

Installation

$ npx @oratiq-js/ui add attachment

Copies the component and everything it depends on into your project, then lists the npm packages to install. The code is yours after this.

Usage

import
import { formatBytes, Attachment, AttachmentList } from "@/components/ui/attachment";

States

training-plan.pdf

2.3 MB

progress-photo.jpg

820.3 KB

session-recording.mp4

huge-archive.zip

File exceeds the 25 MB limit

View source on GitHub → components/ui/attachment.tsx