FileExplorer
ShowcaseComponentsFileExplorer
Navigation

FileExplorer.

Folder tree with breadcrumbs, item selection, rename and file-drop hooks.

Real interactive component
Live demo

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

7 props
ParameterTypeRequiredDefaultPossible valuesDescription
entriesFileExplorerEntry[]Yes——Flat files/folders with id, name, type and parentId.
selectedstringNo——Currently selected entry ID.
onSelect(id: string) => voidNo——Called when an entry is selected.
onRename(id: string, name: string) => voidNo——Called to request entry renaming.
onDropFiles(parentId: string | undefined, files: File[]) => voidNo——Receives local files dropped into a folder.
rootLabelstringNoMy files—Root navigation label.
classNamestringNo——Additional CSS class on the outer component element.