---
title: contentProps
description: 'The props `slot`''s component gets for `element`, besides its children.'
updated_at: '2026-11-19T09:51:44+01:00'
created_at: '2026-11-12T12:04:45+01:00'
symbol:
  kind: function
  name: contentProps
  signatures:
    - >-
      contentProps(element: Element, slot:
      [[reference/api/plugins/content/ContentSlot-type|ContentSlot]]): { tag:
      string; attributes: Record<string, string | boolean>; text: string; href:
      string | undefined; src: string | undefined; alt: string | undefined;
      language: string | undefined; calloutType: string | undefined; title:
      string | undefined; fold: string | undefined; target: string | undefined }
  parameters:
    - name: element
      type: Element
    - name: slot
      type: '[[reference/api/plugins/content/ContentSlot-type|ContentSlot]]'
  returns:
    type: >-
      { tag: string; attributes: Record<string, string | boolean>; text: string;
      href: string | undefined; src: string | undefined; alt: string |
      undefined; language: string | undefined; calloutType: string | undefined;
      title: string | undefined; fold: string | undefined; target: string |
      undefined }
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugins/src/content.ts#L114
---

# contentProps
