---
title: activeContentSlot
description: >-
  The slot that renders `element` inside a tree, where `insideCode` says an
  ancestor is a code block's figure: the figure's own `<pre>` belongs to it, not
  to a slot of its own.
updated_at: '2026-11-19T09:51:44+01:00'
created_at: '2026-11-12T12:04:45+01:00'
symbol:
  kind: function
  name: activeContentSlot
  signatures:
    - >-
      activeContentSlot(element: Element, insideCode: boolean):
      [[reference/api/plugins/content/ContentSlot-type|ContentSlot]] | undefined
  parameters:
    - name: element
      type: Element
    - name: insideCode
      type: boolean
  returns:
    type: '[[reference/api/plugins/content/ContentSlot-type|ContentSlot]] | undefined'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugins/src/content.ts#L136
---

# activeContentSlot
