HOC SiteDokümantasyon

Formatted text

Decoration and visibility use Dekorasyon ve görünürlük (BlockShell).

TipTap HTML body for longer copy. Keep first-viewport copy short; put long articles in object fields and show them from a page component. See shared concepts → Rich text. A single <li> whose bound text contains newlines or <br> expands to one item per line and keeps wrapping inline marks on every item.

Fields

content

TipTap HTML string (not a slot). See shared concepts → Rich text.

content: [{ if: "*", is: "<p>Hello <strong>world</strong></p>" }]

typography

Optional body size and line-height. Each leaf is Authored; omitted leaves keep the rich-text stylesheet.

typography: { size: [{ if: "*", is: 18 }], lineHeight: [{ if: "*", is: 28 }] }

list

listMarkerIcon

Custom bullet icon id from the button icon registry (e.g. check, check-circle). Use check-circle-solid / check-solid for filled Heroicons markers.

list: {
  listMarkerIcon: [{ if: "*", is: "check-circle-solid" }]
}

listMarkerColor

CSS color for custom icon markers (default green). Without an icon, colors the default disc/decimal ::marker.

list: {
  listMarkerColor: [{ if: "*", is: "#9ca3af" }]
}

columns

Column count for ul/ol (1–6). Authored [{ if, is }] with { bp } for responsive column-count.

list: {
  columns: [{ if: "*", is: 1 }, { if: [{ bp: "desktop" }], is: 2 }]
}

contentSpacing

Vertical rhythm between headings, paragraphs, and lists, plus gap between list items. tight (default) keeps historical zero heading margins; normal / loose add spacing.

Options: tight, normal, loose

list: {
  contentSpacing: [{ if: "*", is: "loose" }]
}

hrColor

CSS color for <hr> rules in the body. When unset, the rule inherits text color.

list: {
  hrColor: [{ if: "*", is: "#d1d5db" }]
}

Default props

{
  "shell": {
    "visibility": [
      {
        "if": "*",
        "is": true
      }
    ],
    "anchor": {
      "anchorId": [
        {
          "if": "*",
          "is": ""
        }
      ],
      "anchorKey": [
        {
          "if": "*",
          "is": ""
        }
      ]
    },
    "pointerEvents": [
      {
        "if": "*",
        "is": "auto"
      }
    ]
  }
}