Manta Developers
GitHub
Menu

@manta-eu/horns-kit/client

Reference for @manta-eu/horns-kit/client in @manta-eu/horns-kit 0.2.3.

Type Aliases

HydrateHornEmbedsOptions

HydrateHornEmbedsOptions = object

Properties

catalogCard?

optional catalogCard?: HornSnapshotViewProps["catalogCard"]

Draws a catalog card once the page is live, for the same reason as writtenView.

onRecoverableError?

optional onRecoverableError?: (error, embedId) => void

Parameters
error

unknown

embedId

string

Returns

void

root?

optional root?: ParentNode

writtenView?

optional writtenView?: HornSnapshotViewProps["writtenView"]

Draws a written view once the page is live. The server sent a placeholder for it, so this is the one thing hydration adds rather than adopts — a host that passes nothing keeps the placeholder.

Variables

hornHydrationAttribute

const hornHydrationAttribute: "data-horn-hydration" = "data-horn-hydration"

Functions

hydrateHornEmbeds()

hydrateHornEmbeds(options?): Root[]

Parameters

options?

HydrateHornEmbedsOptions

Returns

Root[]