> For the complete documentation index, see [llms.txt](https://developers.discountninja.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.discountninja.io/discount-ninja-developer-hub/storefront-api/widgets/guiding-principles/integration.md).

# Integration

## Events

Communication with the web components should be done via events. This ensures loose coupling and avoids issues if the implementation of the web component changes.

Examples:

* DO NOT
  * Call the method `Next` on a slot of an Announcement Bar
* DO
  * Publish the event `la:dn:announcement-bar:next`
