# Rich text

<figure><img src="/files/Tiy1WkVKGtQrWJoqSKA4" alt=""><figcaption></figcaption></figure>

## Overview

A flexible rich text content block that allows for formatted text content with customizable text color, alignment, and responsive visibility options.

## Common use cases

* Use for any formatted text content like paragraphs, headings, lists
* Consider text color contrast when using force light/dark options
* Use visibility options to create different content for mobile/desktop
* Default text alignment is left-aligned for better readability

## Block settings

### General

| Setting                | Description                                              | Options                   |
| ---------------------- | -------------------------------------------------------- | ------------------------- |
| Show advanced settings | Reveals visibility, load animation, and scroll animation | Checkbox (default: false) |

### Content

| Setting | Description                      | Options         |
| ------- | -------------------------------- | --------------- |
| Content | The main text content to display | Rich text input |

### Spacing

| Setting                   | Description                                | Options                   |
| ------------------------- | ------------------------------------------ | ------------------------- |
| Enable horizontal padding | Adds horizontal padding around the content | Checkbox (default: false) |
| Enable top padding        | Adds top padding around the content        | Checkbox (default: false) |
| Enable bottom padding     | Adds bottom padding around the content     | Checkbox (default: false) |

### Color

| Setting    | Description             | Options                                                                                                                                                                                                                                                      |
| ---------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Text color | Controls the text color | <p>• Default (default)<br>• Alternative<br>• Primary background<br>• Primary foreground<br>• Secondary background<br>• Secondary foreground<br>• Tertiary background<br>• Tertiary foreground<br>• Neutral background<br>• Neutral foreground<br>• Shade</p> |

### Style

| Setting        | Description                                        | Options                                                                                                                                                                       |
| -------------- | -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Font family    | Controls the font family used for the text         | <p>• Standard (default)<br>• Heading<br>• Subheading<br>• Accent<br><br>Visible when font size contains 'type--' or font size is "custom"</p>                                 |
| Font size      | Controls the font size of the text                 | <p>• Smaller<br>• Small<br>• Default (default)<br>• Big<br>• Bigger<br>• Heading 1<br>• Heading 2<br>• Heading 3<br>• Heading 4<br>• Heading 5<br>• Heading 6<br>• Custom</p> |
| Size           | Custom font size when using custom typography      | <p>4 - 200 px (default: 16)<br><br>Visible when font size is "custom"</p>                                                                                                     |
| Line height    | Custom line height when using custom typography    | <p>100 - 300 % (default: 150)<br><br>Visible when font size is "custom"</p>                                                                                                   |
| Letter spacing | Custom letter spacing when using custom typography | <p>-3 - 3 rem (default: 0)<br><br>Visible when font size is "custom"</p>                                                                                                      |

### Layout

| Setting                  | Description                                             | Options                                                     |
| ------------------------ | ------------------------------------------------------- | ----------------------------------------------------------- |
| Horizontal alignment     | Controls horizontal text alignment                      | <p>• Left (default)<br>• Center<br>• Justify<br>• Right</p> |
| Enable max width         | Limits the maximum width of the text content            | Checkbox (default: true)                                    |
| Enable balanced wrapping | Balances multiline text wrapping for supported browsers | Checkbox (default: false)                                   |

### Display

| Setting          | Description                               | Options                                                                                                                                                                                                                                          |
| ---------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Visibility       | Controls when the block is visible        | <p>• All (default)<br>• Mobile only<br>• Desktop only</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p>                                                                                                               |
| Load animation   | Animation when the block first loads      | <p>• None (default)<br>• Fade<br>• Fade up<br>• Offset fade<br>• Offset fade up</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on and <strong>Scroll animation</strong> is <strong>None</strong></p>                      |
| Scroll animation | Adds scroll-based animations to the block | <p>• None (default)<br>• Fade<br>• Slide up<br>• Slide down<br>• Slide left<br>• Slide right<br>• Zoom</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on and <strong>Load animation</strong> is <strong>None</strong></p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.brickspacelab.com/slab/content/blocks/basics/rich-text.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
