Skip to content
caliper ui pro docs

File manager

A file browser with folders, selection, rename and delete.

Pro
  • Brand
  • Contracts
  • Q3 report.pdf
  • Roadmap.xlsx

Drag files in to upload. Enter opens, F2 renames, Delete removes.

When to use

  • Letting users manage uploaded documents.
  • Bulk actions are needed.

When not to use

  • A single upload is enough; use the dropzone.

Installation

terminal
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.

API reference

FileManager

7 props
PropTypeDefault
items *readonly FileItem[]—
onRename *(id: string, name: string) => void—
onDelete *(ids: string[]) => void—
onRestore *(ids: string[]) => void—
onMove *(ids: string[], folder: string | null) => void—
onUpload *(names: string[], folder: string | null) => void—
classNamestring—

Keyboard

↓
Moves to the next item or value.
↑
Moves to the previous item or value.
Enter
Activates the focused control.
Backspace
Removes the previous character or item.
Delete
Removes the next character or the selected item.
Space
Activates the focused control.
Escape
Closes or cancels, then returns focus to where it came from.

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.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/file-manager.md

The index of every part is at /llms.txt.

More in Commerce