Facts about a file or folder - name, location, type, size, modified - with a Copy path button
Tags: files details metadata copy-path
Name, location, type, size (human-readable and in bytes) and modified date, plus Copy path. The copied text is the drive label plus the path, e.g. Land Development / 105 BREWERY / Plans / Site spec.pdf, for pasting into chat. It is never a UNC path: staff never see server names.
Import
<script>
import { FileDetails } from '@classic-homes/files-svelte';
</script>Basic Usage
<FileDetails {entry} rootLabel="Land Development" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
entry |
FileEntry |
required | The file or folder |
rootLabel |
string |
required | Root label, for the location and "Copy path" |
locale |
string | string[] |
- | Locale for sizes and dates |
class |
string |
- | Classes for the outer element |