Skip to content

lit-ui-router-ssr / client / lightSlot

Variable: lightSlot ​

ts
const lightSlot: typeof renderLight = uiViewSlot;

Defined in: packages/lit-ui-router-ssr/src/client.ts:211

The hole a LightDomHydrating element fills, written at the use site: the uiViewSlot directive under a name that does not read as a view.

On the server it reaches LightElementRenderer's renderLight(), so the element's own render goes where the template puts it. On the client it wakes the element when the enclosing walk reaches it, parent first, and pins the adopter to it.

Example ​

ts
html`<app-card .title=${title}>${lightSlot()}</app-card>`;