---
title: Link
description: JSON Schema for the Link component.
---

An inline link that renders as an anchor tag.

```json
{
  "type": "object",
  "properties": {
    "type": {
      "const": "Link",
      "default": "Link",
      "type": "string"
    },
    "id": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "HTML id attribute for CSS targeting. Applied to the outermost element."
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling. Accepts a Responsive() for breakpoint-aware classes."
    },
    "content": {
      "description": "Text content",
      "type": "string"
    },
    "bold": {
      "type": [
        "boolean",
        "null"
      ],
      "default": null
    },
    "italic": {
      "type": [
        "boolean",
        "null"
      ],
      "default": null
    },
    "underline": {
      "type": [
        "boolean",
        "null"
      ],
      "default": null
    },
    "strikethrough": {
      "type": [
        "boolean",
        "null"
      ],
      "default": null
    },
    "uppercase": {
      "type": [
        "boolean",
        "null"
      ],
      "default": null
    },
    "lowercase": {
      "type": [
        "boolean",
        "null"
      ],
      "default": null
    },
    "code": {
      "default": false,
      "description": "Render as inline code with monospace font",
      "type": "boolean"
    },
    "align": {
      "default": null,
      "type": "null"
    },
    "href": {
      "description": "URL to navigate to",
      "type": "string"
    },
    "target": {
      "type": [
        "string",
        "null"
      ],
      "default": "_blank",
      "description": "Link target: '_blank' (new tab), '_self' (same tab)"
    },
    "style": {
      "additionalProperties": {
        "type": "string"
      },
      "type": [
        "object",
        "null"
      ],
      "default": null,
      "description": "Inline CSS styles as a dict of property/value pairs."
    }
  },
  "required": [
    "type",
    "content",
    "href"
  ]
}
```
