Slot
Named Lit insertion point (native
HTML tag: c-e3159a423b6a24aa195f6eff722debc5f
When to use
Section titled “When to use”- explicit slot projection in composed layouts
- insertion point when parent schema lists slots
- rare — usually slot on parent directly
| Prop | Type | Default | Description |
|---|---|---|---|
name | String |
- 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.
Events
Section titled “Events”| Event | Detail |
|---|---|
slotchange |
What to avoid
Section titled “What to avoid”Do not use as a visible UI widget by itself. Prefer parent documented slots over inventing extra slot wrappers.
Example
Section titled “Example”<c-ebf0e4d684ae8468296245742d195d309> <div slot="header">Title</div> Main body in default slot</c-ebf0e4d684ae8468296245742d195d309>