{ get: (error_message?: string | undefined) => MdzComponents; get_maybe: () => MdzComponents | undefined; set: (value: MdzComponents) => MdzComponents; } Context for providing custom mdz components. Must be set by the application using mdz.
4 declarations
{ get: (error_message?: string | undefined) => MdzComponents; get_maybe: () => MdzComponents | undefined; set: (value: MdzComponents) => MdzComponents; } Context for providing custom mdz components. Must be set by the application using mdz.
{ get: (error_message?: string | undefined) => MdzElements; get_maybe: () => MdzElements | undefined; set: (value: MdzElements) => MdzElements; } Context for providing allowed HTML elements. Must be set by the application using mdz. By default, no HTML elements are allowed.
MdzComponents Component registry for custom Svelte components that can be used in mdz content.
For example, registering 'Alert' allows using <Alert>...</Alert> in mdz content.
The Map values are the Svelte component constructors.
MdzElements Element registry for HTML elements that can be used in mdz content.
For example, registering 'div' allows using <div>...</div> in mdz content.
The Map values are boolean placeholders for future configuration options.