uibrik

File Card

Preview

Customize

Curl46px

Usage

import { FileCard } from "@/components/uibrik/file-card/file-card";

<FileCard />

Installation

npx shadcn@latest add https://uibrik.com/r/file-card.json
Adds the files to components/uibrik/file-card and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/file-card.

Props

FileCard
name
Type string
"Q4 planning.pdf"
File name, on the shell.
meta
Type string
"PDF · 2.4 MB"
Muted, beside the name: type and size.
curl
Type number
46
How far the corner curls on hover. Pressing curls it further.
versions
Type { author?: string; time?: string; preview?: string }[]
2 sample versions
Versions on mount, oldest first. The last is on top; preview swaps the drawn page for an image.
onOpen
Type () => void
–
Called when the sheet is clicked.
className
Type string
–
Classes for the card.