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: 'valorite',
    persist: true,
  }"
/>

Configuration Properties

PropertyTypeDefaultDescription
view'grid' | 'list''grid'View mode: grid or list
themeTheme'silver'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
showMenuBarbooleantrueShow menu bar (non-persistent, resets on page reload)
showToolbarbooleantrueShow toolbar (non-persistent, resets on page reload)
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: 'silver',
      persist: false,
    }"
  />
</template>

Advanced Configuration

vue
<template>
  <vue-finder
    id="advanced"
    :driver="driver"
    :config="{
      view: 'list',
      theme: 'valorite',
      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>

UI Visibility Settings

You can control the visibility of the menu bar and toolbar using the showMenuBar and showToolbar config options. These are non-persistent options that reset to their default values (true) on page reload.

For detailed examples and usage, see the UI Visibility example.