Should you want to add content to the widget (or indeed any of our UI components), since we use a Shadow DOM to ensure encapsulation of styling, you should first access theDocumentation Index
Fetch the complete documentation index at: https://dynamic-docs-feat-sidebar-revamp.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
shadowRoot property of the host element - from there you can access the elements and manipulate them or append new ones.
For example, if you want to target the Dynamic Widget, you’d look for an element with data-testid="dynamic-modal-shadow":
- The widget content may change dynamically (e.g., different views or states).
- The widget might be destroyed and recreated in the DOM.
- Your custom content might be overwritten by internal widget updates.