OptionalavailableAvailable tabs for smart opening
OptionalcolorsCustom colors for theming
OptionalcolumnsColumns to display in the file list
OptionalcurrentCurrent folder path (e.g., '/', '/Notes', '/Recordings/2024'). When inside FileCacheProvider, this is managed internally unless overridden.
OptionalcurrentCurrent user ID (used to determine edit permissions on markers)
OptionalcustomCustom toolbar action
OptionalcustomCustom context menu actions for files (appended after built-in actions)
OptionalcustomCustom filter dropdowns rendered in the toolbar alongside search and sort
OptionalcustomCustom viewer renderers for specific resource types. These are passed to FileViewer for rendering custom file types.
OptionaldefaultLabel of the filter chip to select by default. When provided, this chip is active on mount instead of "All".
OptionaldefaultDefault view mode when uncontrolled
OptionalenableWhether to enable drag-and-drop file moving
OptionalenableEnable timeline markers for audio/video files
OptionalenableWhether to enable multi-file selection
OptionalenableEnable region creation and loop playback for audio/video files
OptionalenableEnable smart opening (open whiteboards/notes in their respective tabs)
OptionalfieldCustom formatters for file list columns. Each key is a column name, and the value is a function that receives the file and returns a display string. The formatter's return value replaces the default cell text.
OptionalfileCustom file name formatter
OptionalfilesArray of files in current folder. When inside FileCacheProvider, this is derived from context unless overridden.
OptionalfilterResource types to show first in auto-generated filter chips.
Types not in this list appear after, sorted alphabetically.
Only used when filterChips is not provided.
OptionalfilterFilter chip definitions to render between toolbar and content. When provided, a chip bar is shown allowing users to filter by resource type. The first chip is selected by default.
OptionalfilterFilter to specific file types (forces flat view)
OptionalfoldersArray of subfolders in current folder. When inside FileCacheProvider, this is derived from context unless overridden.
OptionalgetReturn the number of comments on a file (for badge display on file rows/cards). When provided, files with count > 0 show a comment icon.
OptionaliconsCustom icons
OptionalisWhether download is in progress (managed internally when inside FileCacheProvider)
OptionalisWhether files are currently loading. When inside FileCacheProvider, this is derived from context unless overridden.
OptionalisWhether refresh is in progress (managed internally when inside FileCacheProvider)
OptionalisWhether current user is room owner (derived from context when inside FileCacheProvider)
OptionalisWhether upload is in progress (managed internally when inside FileCacheProvider)
OptionalisWhether the component is visible (for lazy loading)
OptionallabelsCustom labels for internationalization
OptionalonAdd a new comment to a file
OptionalonCreate a new folder
OptionalonDelete files
OptionalonDelete a comment from a file
OptionalonDelete a folder
OptionalonDownload a file or files
OptionalonEdit a comment on a file
OptionalonGet list of available file types for filtering
OptionalonCallback fired when the file count changes (useful for conditional UI)
OptionalonCallback when a file should be opened in an editor (for types without inline viewers). If provided, prevents the fallback "no preview" viewer from opening.
OptionalonHandle double-click to open file. This is always called when a file is opened.
OptionalonGet attendees for sharing dialog
OptionalonGet comments for a specific file. When provided, enables the comments panel. Called when a file is selected and the comments panel is opened.
OptionalonGet presigned URL for file viewing
OptionalonGet saved timeline markers for a specific file
OptionalonGet saved regions for a specific file
OptionalonCalled when a new timeline marker is added
OptionalonCalled when a timeline marker is updated
OptionalonCalled when a timeline marker is deleted
OptionalonMove file(s) to a new location
OptionalonNavigate to a folder path. When inside FileCacheProvider, this is auto-wired unless overridden.
OptionalonRefresh the file list. When inside FileCacheProvider, this is auto-wired unless overridden.
OptionalonCalled when a named region is created or updated
OptionalonCalled when a named region is deleted
OptionalonRename a file
OptionalonCallback when a file is selected
OptionalonShare files with users
OptionalonCallback when switching to a specific tab (for smart opening)
OptionalonUpload a file. Returns void or throws on error.
OptionalonCallback when view mode changes
OptionalrefreshTrigger refresh from parent (increment to trigger refresh)
OptionalrenderRender props for advanced customization
OptionalrenderCustom render function for the sharing dialog's user selection area. When provided, replaces the default checkbox user list in the share dialog.
OptionalresourceCustomize the mapping of resource types to sidebar tab names for smart opening.
When a file is double-clicked and has no inline viewer, this mapping determines
which tab to switch to via onSwitchToTab.
// Add a custom resource type that opens in a "documents" tab
<FileManager resourceTabMapping={{ add: { 'custom-doc': 'documents' } }} />
// Remove a mapping so it falls through to the file viewer
<FileManager resourceTabMapping={{ remove: ['whiteboard'] }} />
// Replace the entire mapping
<FileManager resourceTabMapping={{ replace: { notes: 'notes', whiteboard: 'board' } }} />
OptionalresourceOverride which resource types open in the inline FileViewer. By default, types like image, video, pdf, room-summary, etc. open in the viewer. Types not in this set (e.g., whiteboard, notes) route to tab switching instead.
// Add a custom type to the viewer set
<FileManager resourceViewerTypes={{ add: ['my-custom-type'] }} />
// Remove a type so it routes to tab switching
<FileManager resourceViewerTypes={{ remove: ['room-summary'] }} />
// Replace the entire set
<FileManager resourceViewerTypes={{ replace: ['image', 'video', 'pdf'] }} />
OptionalroomRoom name (derived from context when inside FileCacheProvider)
OptionalshowWhether to show both owned and shared files
OptionalshowWhether to show breadcrumb navigation
OptionalshowWhether to show only files shared with user
OptionalshowWhether to show the toolbar
OptionalsortlocalStorage key for persisting sort state. When provided, sort column and direction are saved and restored across sessions.
OptionalstylesCustom style values
OptionalsxMUI sx styling prop
OptionaluserCurrent user's ID. When inside FileCacheProvider, this is derived from context unless overridden.
OptionalviewControlled view mode (table or card). When provided, the component is controlled.
Props for the FileManager component.
Remarks
Requirement: Must be used inside a
<FileCacheProvider>component (which itself must be inside a<HiyveProvider>) for automatic state management.When used inside
FileCacheProvider:onFileOpenis required to handle file selectionWhen used standalone (without FileCacheProvider):
Example
Example
Example