> For the complete documentation index, see [llms.txt](https://frinn.gitbook.io/custom-machinery-1.21/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://frinn.gitbook.io/custom-machinery-1.21/misc/text-component.md).

# Text component

Customize text.

Text Components are used to display strings to the player, with more formatting options than a default string (color, bold, etc...)

Custom Machinery use these components in various places such as the machine name or tooltips properties.

{% hint style="info" %}
The [Minecraft wiki](https://minecraft.fandom.com/wiki/Raw_JSON_text_format#Java_Edition) have a full documentation of how to make text components using json. Be sure to follow the "Java edition" part.
{% endhint %}

### Available properties :

* `text` (The text to display)
* `bold` (true/false)
* `italic` (true/false)
* `underlined` (true/false)
* `striketrough` (true/false)
* `obfuscated` (true/false)
* `color` ("colorID" or "#RRGGBB" hex format)
* `font` (custom font id, minecraft only provide "minecraft:default")
* `children` Not supported !

### Example :&#x20;

Display `Hello !` in red and bold.

```json
{
    "text": "Hello !",
    "bold": true,
    "color": "red"
}
```
