Skip to content

Configuration

VueFinder provides a comprehensive configuration system that allows you to customize its behavior and appearance.

Config Options

All configuration options are passed via the config prop:

vue
<vue-finder
  id="my_vuefinder"
  :driver="driver"
  :config="{
    view: 'grid',
    theme: 'dark',
    persist: true,
  }"
/>

Configuration Properties

PropertyTypeDefaultDescription
view'grid' | 'list''grid'View mode: grid or list
themeTheme'light'Theme name (see Theming)
fullScreenbooleanfalseStart in full-screen mode
showTreeViewbooleanfalseShow sidebar tree view
showHiddenFilesbooleantrueShow hidden files
compactListViewbooleantrueUse compact list view style
metricUnitsbooleanfalseUse metric file sizes (KB, MB) instead of binary (KiB, MiB)
showThumbnailsbooleantrueShow image thumbnails
persistbooleanfalsePersist current path to localStorage
initialPathstring | nullnullInitial path on mount
loadingIndicator'linear' | 'circular' | string'circular'Loading indicator style
maxFileSizenumber | string | nullnullMaximum file upload size (e.g., '10mb', '50mb')
pinnedFoldersDirEntry[][]Array of pinned folders

Examples

Basic Configuration

vue
<template>
  <vue-finder
    id="basic"
    :driver="driver"
    :config="{
      view: 'grid',
      theme: 'light',
      persist: false,
    }"
  />
</template>

Advanced Configuration

vue
<template>
  <vue-finder
    id="advanced"
    :driver="driver"
    :config="{
      view: 'list',
      theme: 'dark',
      fullScreen: false,
      showTreeView: true,
      showHiddenFiles: false,
      compactListView: true,
      metricUnits: true,
      showThumbnails: true,
      persist: true,
      initialPath: 'local://documents',
      loadingIndicator: 'linear',
      maxFileSize: '50mb',
      pinnedFolders: [],
    }"
  />
</template>

With Persistence

When persist: true, VueFinder will save the current path to localStorage, allowing it to remember the last visited directory when the page is reloaded:

vue
<template>
  <vue-finder
    id="persistent"
    :driver="driver"
    :config="{
      persist: true,
      initialPath: 'local://',
    }"
  />
</template>