---
url: "https://vueda.dev/v3/reference/api/vue/WidgetFileReadOnly.md"
title: "WidgetFileReadOnly"
---

# WidgetFileReadOnly

## Overview

Read-only presentation for file and image fields. Wraps {@link WidgetReadOnly} so the row
keeps its label association, theme slots, and lookup behavior, and fills the value with
{@link FileDisplay}: a link labelled with the file name, instead of the `{ name, url }`
object that the plain read-only widget prints.

`fieldMappings` selects this widget through `readOnlyWidget`.

A consumer's own `default` slot still wins: this widget supplies the file rendering
only when the field has no `widget(fieldName)default` override.

## Slots

### `slotName` {#slot-slotName}

Scoped slot.

## Source

`client/lib/widgets/WidgetFileReadOnly.vue`
