File manager
ProA file browser with folders, selection, rename and delete.
pnpm dlx shadcn@latest add @caliper/file-manager- Brand2 itemsOct 20
- Contracts1 itemsOct 12
- Q3 report.pdf2.3 MBOct 22
- Roadmap.xlsx86 KBOct 21
Drag files in to upload. Enter opens, F2 renames, Delete removes.
When to use #
Use it for
- Letting users manage uploaded documents.
- Bulk actions are needed.
Skip it when
- A single upload is enough; use the dropzone.
Installation #
pnpm dlx shadcn@latest add @caliper/file-manager
Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
Usage #
Import it from your copy of the source. The example behind the preview comes with the source.
import { FileManager } from "@/components/ui/file-manager"
The worked example comes with Pro
The 27-line example behind the preview opens here with a Pro or Team licence.
API reference #
FileManager
component
Accessibility #
It exposes status, listbox, option and presentation semantics, with aria-label, aria-current, aria-hidden, aria-multiselectable, aria-activedescendant and aria-selected kept in step with state. Changes that matter are announced through a live region.
Motion #
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.