Interface CustomSection
interface CustomSection {
class: new (
options: ComponentConstructorOptions<any>,
) => SvelteComponent;
folder?: string | CustomSectionFolder;
intro?: boolean;
props?: NarrowPropsObject<Component, Config>;
styles?: { [key: string]: string };
}
class: new (
options: ComponentConstructorOptions<any>,
) => SvelteComponent;
folder?: string | CustomSectionFolder;
intro?: boolean;
props?: NarrowPropsObject<Component, Config>;
styles?: { [key: string]: string };
}
Hierarchy
- Embed
- CustomSection (View Summary)
Properties
class
The Svelte component class / constructor function.
Optionalfolder
A folder label or CustomSectionFolder object.
Optionalintro
intro?: boolean
If true, will play transitions on initial render, rather than waiting for subsequent state changes.
Optionalprops
Props to pass to the component. You may define props as an object.
Optionalstyles
styles?: { [key: string]: string }
Inline styles for the section element.
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. Justclassandpropsare supported.