Defines the TRL / client side embed configuration object to load a Svelte component that is suitable to be mounted directly by the <svelte:component> directive. Just class and props are supported.

interface CustomSection {
    class: new (
        options: ComponentConstructorOptions<any>,
    ) => SvelteComponent;
    folder?: string | CustomSectionFolder;
    intro?: boolean;
    props?: Partial<Omit<any, never>>;
    styles?: { [key: string]: string };
}
Hierarchy

Properties

class: new (options: ComponentConstructorOptions<any>) => SvelteComponent

The Svelte component class / constructor function.

folder?: string | CustomSectionFolder

A folder label or CustomSectionFolder object.

intro?: boolean

If true, will play transitions on initial render, rather than waiting for subsequent state changes.

props?: Partial<Omit<any, never>>

Props to pass to the component. You may define props as an object.

styles?: { [key: string]: string }

Inline styles for the section element.