File manager
A file browser with folders, selection, rename and delete.
- Brand2 itemsOct 20
- Contracts1 itemOct 12
- Q3 report.pdf2.3 MBOct 21
- Roadmap.xlsx86 KBOct 19
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
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
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.mdThe index of every part is at /llms.txt.