Skip to main content

Arguments

  1. string
    required
    The id of the component.
  2. object
    required
    Options for site version and locale.

Return type

Promise<MakeswiftComponentSnapshot | null>
An opaque MakeswiftComponentSnapshot object that is only intended to be rendered by <MakeswiftComponent> and <Slot>.

Examples

The following examples expect that you have a Makeswift client instance already configured and exported from "@/makeswift/client.ts". If you don’t, see the client reference.

Basic usage

Localization

Changelog