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

# WidgetBooleanReadOnly

## Overview

Read-only presentation for boolean fields. Wraps {@link WidgetReadOnly} so the row keeps
its label association, theme slots, and lookup behavior, and fills the value with
{@link BooleanDisplay} instead of the raw serialized literal.

`fieldMappings` selects this widget through `readOnlyWidget` and supplies the per-type
labels through `readOnlyWidgetProps`, so a project that says "Enabled" and "Disabled"
sets them once in its own mapping rather than per field.

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

## Props

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="prop-trueLabel">trueLabel</span> | `string` |  | `"Yes"` | Word shown for a true value. |
| <span id="prop-falseLabel">falseLabel</span> | `string` |  | `"No"` | Word shown for a false value. |

## Slots

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

Scoped slot.

## Source

`client/lib/widgets/WidgetBooleanReadOnly.vue`
