# Label

> Label shows read-only text on its own row - an explanation, a heading or a value - and wraps long text onto several lines.

URL: https://xichil.dev/docs/xis-mvui/v1/widgets/label/ · Updated: 2026-11-06 · Applies to: Fabric, Quilt, Legacy Fabric, Forge, NeoForge, MC 1.7.10 - 26.3

Read-only text on its own row: an explanation, a heading, or a value to show. Long text wraps onto several
lines.

```java
Label.builder("info")
        .text(() -> Text.translatable("mymod.info", "%s profiles saved", profiles.size()))
        .build();
```

## Builder

| Method | Required | Default | Notes |
| --- | --- | --- | --- |
| `text(Supplier<Text>)` / `text(Text)` | yes | | re-read on every refresh |
| `enabled`, `tooltip`, `visible` | no | | [options every widget has](https://xichil.dev/docs/xis-mvui/v1/widgets/index.md#options-every-widget-has) |

## Behaviour

- For the outcome of an action ("Saved", "Couldn't write the file"), use a [StatusLine](https://xichil.dev/docs/xis-mvui/v1/widgets/status-line/index.md) instead:
  it has a severity color and starts empty.
- A non-collapsible [Section](https://xichil.dev/docs/xis-mvui/v1/widgets/section/index.md) is drawn as a label, so use a section for a heading above a group.
- **Footer:** yes.

## Test it

Rendered as `[label info] 3 profiles saved`.

## See also

- Javadoc: [Label](https://xichil.dev/javadoc/xis-mvui/v1/dev/xichil/mvui/Label.html)
