Skip to content

ExperienceMount

ExperienceMount<S, F, K> = (root, ctx) => () => void

A module’s default export: draw into root, the experience’s shadow root, and return the function that undoes it. Synchronous, never async.

No selector crosses root either way, but inherited custom properties (--*) and the page’s root font size (rem) do, as in any shadow root: set your own properties, and size in px or em.

S extends SiteSchema = SiteSchema

F extends FeatureNameOf<S> = FeatureNameOf<S>

K extends OutcomeIdOf<S, F> = OutcomeIdOf<S, F>

ShadowRoot

ExperienceContext<S, F, K>

() => void

edgekit.ai