---
title: text
description: A run of text — the leaf that carries words, with a variant for heading, body, caption or small.
status: shipped
url: https://getairframe.com/framewerk/reference/nodes/text
---

> Part of the Framewerk docs. Index of every page: /framewerk/llms.txt

# `text`

A run of text — the leaf that carries words, with a variant for heading, body, caption or small.

## Example

**text**

```json
{
  "id": "home",
  "layout": {
    "_id": "root",
    "type": "column",
    "gap": 8,
    "padding": 16,
    "children": [
      {
        "_id": "h",
        "type": "text",
        "variant": "heading",
        "content": "Hello"
      },
      {
        "_id": "b",
        "type": "text",
        "variant": "body",
        "content": "Body copy."
      },
      {
        "_id": "c",
        "type": "text",
        "variant": "caption",
        "color": "muted",
        "content": "Caption"
      }
    ]
  }
}
```

## States

Styled-run arrays in `content`. Common to every node: `hover` / `press` / `focus` CSS bags, `showWhen` / `hideWhen`, `animate`.

## Stability

This node type is part of the format contract: adding an optional prop is additive; removing the node or narrowing an existing prop is breaking. Prop tables are generated from the schema; this page carries the prose.
