---
title: "Text"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/svg/text
markdown: https://docs.nodetool.ai/nodes/lib/svg/text.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/svg/text.md
---

# Text

**Type:** `lib.svg.Text`

**Namespace:** `lib.svg`

## Description

Add text elements to SVG.
    svg, text, typography

    Use cases:
    - Add labels to vector graphics
    - Create text-based logos
    - Generate dynamic text content in SVGs

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| text | `str` | Text content | `` |
| x | `int` | X coordinate | `0` |
| y | `int` | Y coordinate | `0` |
| font_family | `str` | Font family | `Arial` |
| font_size | `int` | Font size | `16` |
| fill | `color` | Text color | `{"type":"color","value":"#000000"}` |
| text_anchor | `enum` | Text anchor position | `start` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `svg_element` |  |

## Related Nodes

Browse other nodes in the [lib.svg](./) namespace.
