Skip to content

remix/component · Type

View Source

ResolveFrame

Summary

Resolves content for a browser-loaded frame.

Only return trusted application content. Remix does not sanitize HTML strings, streams, or response bodies before parsing and reconciling them into the current document. Frame HTML can select client-entry modules and contribute import maps, styles, and nested frames.

Signature

type ResolveFrame = (
  src: string,
  options?: ResolveFrameOptions,
) => Promise<FrameResolution> | FrameResolution