# `text`

```strand
element text(text -> text): node
```

Text: `text clock.format("%a %d  %H:%M")`.

It takes no children but [`letters`](/reference/elements/letters.html.md).

Also every prop and event of [`node`](/reference/elements/node.html.md).

| Prop | Type | |
| --- | --- | --- |
| `ellipsis` | `Ellipsis` | Where overflowing text is cut with `…`: `ellipsis: end`. |
| `max_lines` | `int` | At most this many lines. |
| `marks` | `[Range]` | Character ranges to highlight: `marks: h.ranges`. |
| `mark_color` | `paint` | The paint of `marks`. |
| `markup` | `Markup` | `basic` renders simple markup. |
| `roll` | `bool` | Rolls the digits when the number changes: `roll: true`. |
| `text_stroke` | `length, paint` | An outline around the letters: `text_stroke: 1, $bg`. |
| `fill` | `paint` | The paint of the letters: `fill: linear(…)`. |
