---
title: "Static text | Customer&#x27;s Canvas"
canonical: "https://customerscanvas.com/docs/on-premises/ui-framework/widgets/static-text/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Customer's Canvas Hub"
    versions: ["cloud"]
    entity_id: "https://customerscanvas.com/products/hub#software-application"
  - product: "UI Framework"
    versions: ["4.0 - 4.46"]
---

# Static text

**Applies to:** Customer's Canvas On-Premises; Customer's Canvas Hub cloud; UI Framework 4.0 - 4.46

> This is a very simple widget displaying a text string. You can use StaticText as a stub.

## General information

- **type**: `static-text`

## Properties

- `text` - a text string.

## Examples

### Basic usage

```json
{
    "type": "static-text", 
    "name": "stub",
    "params": {
        "text": "No options available."
    }
}
```

### Displaying the content of another widget

For debug purposes, it may be convenient to use this widget to display dynamic values from another widget. For example, you have an option widget called **treatment**. To see its value when the user selects it, use the config like this:

```json
{
    "type": "static-text", 
    "name": "debug-treatment",
    "params": {
        "text": "{{$['treatment']._.title}}"
    }
}
```

For more complicated texts where you need to add HTML markup, use the [Html widget](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/html.md).
