# Widgets

## Guiding principles

To ensure our widgets are developed using best practices and meet your requirements, the following guiding principles were observed:

* [Accessibility](/discount-ninja-developer-hub/storefront-api/widgets/guiding-principles/accessibility.md)
* [Localization](/discount-ninja-developer-hub/storefront-api/widgets/guiding-principles/localization.md)
* [Integration](/discount-ninja-developer-hub/storefront-api/widgets/guiding-principles/integration.md)
* [Style](/discount-ninja-developer-hub/storefront-api/widgets/guiding-principles/style.md)

## Catalog

### Site-wide

The following widgets are available on all page types:

* [Announcement Bar](/discount-ninja-developer-hub/storefront-api/widgets/announcement-bar.md)
* [Notification](/discount-ninja-developer-hub/storefront-api/widgets/notification.md)
* [Offer Rules Popup](/discount-ninja-developer-hub/storefront-api/widgets/offer-rules-popup.md)

### Product page (PDP)

* [Product Banner](/discount-ninja-developer-hub/storefront-api/widgets/product-banner.md)

### Collections (PLP)

{% hint style="info" %}
Collections can be found on collection pages, the catalog, the home page, search result and on product pages (related products...)
{% endhint %}

* [Promotional Badge](/discount-ninja-developer-hub/storefront-api/widgets/promotional-badge.md)

### Cart

* [Promotion Code Field](/discount-ninja-developer-hub/storefront-api/widgets/promotion-code-field.md)
* [Promotion Summary](/discount-ninja-developer-hub/storefront-api/widgets/promotion-summary.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.discountninja.io/discount-ninja-developer-hub/storefront-api/widgets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
