This content is selected from a hidden element using a CSS selector.
The modal clones this content when opened.
This content comes from an HTML template element.
Templates are great for reusable modal content.
This is a help modal example demonstrating the help modal functionality.
Help modals use HTML <template> elements for reusable content. See help-modal-template.html for a complete reference example.
Use HTML <template> elements for reusable help content.
Includes automatic styling for table of contents, sections, and FAQ items.
Defaults to xlarge size for better readability of documentation.
Create a <template> element with your help content and use it with createHelpModal(). See help-modal-template.html for a reference structure.
Yes, pass size in the options to override the default xlarge size.
Include <img> tags in your template. Images are automatically styled with responsive sizing.