File Row

A single file row with an icon, a truncated name, an optional meta line and a ghost download button with an accessible label. Styled with Tailwind.

src/registry/ui/file-row.tsx/r/file-row.json

Installation#

bash
npx shadcn@latest add @minidev/file-row

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/file-row.json

Usage#

tsx
import { FileRow } from "@/components/ui/file-row"

export function Example() {
  return <FileRow />
}

API reference#

FileRow props
PropTypeDefault
name*string-
metastring-
onDownload() => void-
classNamestring-

* required

Dependencies#

npm

lucide-react

Built from

All media and upload components

Learn more