> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sirius.menu/llms.txt
> Use this file to discover all available pages before exploring further.

# Text

> A title, a body, or both, on a card of its own.

<a href="https://www.sentivel.com/?ref=sirius-docs" target="_blank" rel="noopener noreferrer" className="sv-banner">
  <span className="sv-banner-mark" aria-hidden="true">
    <svg viewBox="0 0 194.08 236.31" fill="currentColor">
      <path fillRule="evenodd" clipRule="evenodd" d="M181.21,89.15L137.69,99.7l21.82-14.53c15.69-10.45,26.19-27.08,28.88-45.73L194.08,0l0,0c-18.79,13.86-40.77,22.76-63.91,25.86L72.27,33.6c-23.32,3.12-44.43,16.31-56.32,36.62C6.1,87.06,2.64,107.65,7.91,128.02l1.04,4.01l48.67,5.2l0,0C30.7,143.2,10.28,165.2,6.34,192.49L0,236.31l0,0c28.49-17.35,60.53-28.03,93.73-31.26l25.54-2.48c29.96-2.91,56.12-22.72,65.53-51.32c4.42-13.44,5.16-28.26,1.36-42.96L181.21,89.15z M115.85,143l-23.2,6.02c-8.99,2.31-18.13-3.06-20.47-12.05l-5.99-23.2c-2.34-8.99,3.06-18.16,12.03-20.47l23.22-6.02c8.97-2.31,18.13,3.08,20.47,12.05l5.99,23.22C130.24,131.52,124.84,140.69,115.85,143z" />
    </svg>
  </span>

  <span className="sv-banner-copy">
    <span className="sv-banner-title">
      Sentivel
      <span className="sv-banner-badge">Endorsed by Rayfield</span>
    </span>

    <span className="sv-banner-sub">Status pages and uptime monitoring for whatever you ship. Free to start.</span>
  </span>

  <span className="sv-banner-cta">
    Take a look
    <span className="sv-banner-arrow" aria-hidden="true">→</span>
  </span>
</a>

<Note>
  Preview only. This is on the [preview channel](/rayfield-gen2/preview) and is not in the stable release. It can change or be dropped before it lands there.
</Note>

Text is copy on a page. It carries a title, a body, or both, and the card closes up around whichever half is there. The title renders at 16, the body at 14 and a shade lighter. Text has no value and does not save.

```lua theme={null}
tab:CreateText({
    name = "Read this first",
    text = "Either half can be left out, and the card closes up around what is left.",
})
```

## Properties

<ResponseField name="name" type="string">
  The title. Optional.
</ResponseField>

<ResponseField name="text" type="string">
  The body. Optional.
</ResponseField>

<ResponseField name="icon" type="string | number">
  An icon shown to the left of the title. Optional.
</ResponseField>

## Handle

<ResponseField name=".name" type="string">
  The current title.
</ResponseField>

<ResponseField name=".text" type="string">
  The current body.
</ResponseField>

<ResponseField name="Set(text)">
  Set the body. Pass `""` to clear it.
</ResponseField>

<ResponseField name="SetTitle(title)">
  Set the title. Pass `""` to clear it.
</ResponseField>

```lua theme={null}
local status = tab:CreateText({ name = "Status", text = "Waiting." })

status:Set("Connected.")
status:SetTitle("")  -- body on its own
```

<Note>
  Text is full width. Create it on a tab or inside a column group - a row warns and returns `nil`.
</Note>
