# Component: Text

**Purpose**: Use this component to add and format text on your page. Suitable for headings, paragraphs, and any other text content.

{% embed url="<https://69c2cf3a42a094f3cd354b8d-ojozztnsdo.chromatic.com/?path=/story/shop-components-content-text--default&full=1&shortcuts=false&singleStory=true&embed=true>" %}

## Props

| Prop Name | Label   | Type     | Default Value | Description                                                                                                                                        |
| --------- | ------- | -------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| content   | Content | richtext | Text Content  | Text to display                                                                                                                                    |
| size      | Size    | picklist | Default       | <p>Size only changes the text when Variant = Body.<br><br>Options: Default, Small, Medium, Large</p>                                               |
| weight    | Weight  | picklist | Default       | <p>Weight only changes the text when Variant = Body.<br><br>Options: Default, Regular, Emphasised</p>                                              |
| variant   | Variant | picklist | Body          | <p>Determines the underlying HTML type of the text, which will drive format and styling.<br><br>Options: Heading 1, Heading 2, Heading 3, Body</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://docs.limio.com/components/component-library/standard-components/component-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.
