type-alias / @typed/astro/Component

Slots

Named Astro slots available to a component generator’s second argument.

Astro owns the serialized or existing slot content. Insert each present slot once as opaque output; a missing named slot is undefined. Re-rendering its descendants with Typed would give two renderers ownership of the same range.

Package version
1.0.0-beta.13
Category
Astro slots
Since
1.0.0

Import

import type { Slots } from "@typed/astro/Component";

Signatures

export type Slots = Readonly<Record<string, Fx.Fx<RenderEvent> | undefined>>;

Source