Skip to content

Slot

Named Lit insertion point (native ) for composing parent/child layouts in generated markup.

HTML tag: c-e3159a423b6a24aa195f6eff722debc5f

  • explicit slot projection in composed layouts
  • insertion point when parent schema lists slots
  • rare — usually slot on parent directly
PropTypeDefaultDescription
nameString
  • Use when a parent component documents a slot region (ab-page-template, ab-card, ab-dialog, etc.).
  • Optional name attribute for named slots; default slot when unnamed.
  • Children placed as light DOM inside the parent host, not inside slot tag body in all patterns — follow parent slot names from schema.
EventDetail
slotchange

Do not use as a visible UI widget by itself. Prefer parent documented slots over inventing extra slot wrappers.

<c-ebf0e4d684ae8468296245742d195d309>
<div slot="header">Title</div>
Main body in default slot
</c-ebf0e4d684ae8468296245742d195d309>