> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/flow-components/scoped-notification.md).

# Scoped Notification

The Avonni Scoped Notification displays notification messages to users with an optional action

## Overview

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2Fgit-blob-6b0df0fda4b0c17cb1e97ba9c5aabe2feff6085f%2Fimage%20(41).avif?alt=media" alt="" width="375"><figcaption></figcaption></figure>

The Scoped Notification displays a styled message block within a Flow screen to communicate status, warnings, errors, or instructions. It is a purely informational component — it has no interactions and no output variables.

***

## Configuration

To configure it, click the component on the Flow screen. The Edit Scoped Notification Component panel opens on the right with two tabs: Properties and Style. The sections below mirror the Properties tab.

### Properties

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FFbwG42IPlwaddMddzyCj%2Fscoped-notification-properties.png?alt=media" alt="The Properties tab of the Scoped Notification property editor" width="320"><figcaption><p>Where these settings live: the <strong>Properties</strong> tab of the Edit Scoped Notification panel.</p></figcaption></figure>

| Setting       | What It Does                                                                                                                         |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **Variant**   | Sets the color theme: **Base** (gray, default), **Dark** (dark gray), **Error** (red), **Success** (green), or **Warning** (yellow). |
| **Title**     | The heading text displayed in bold at the top of the notification.                                                                   |
| **Content**   | The body text of the notification. Supports rich text formatting.                                                                    |
| **Icon Name** | An optional Lightning Design System icon displayed to the left of the notification content.                                          |
| **Icon Size** | Size of the icon: XX-Small, X-Small, Small, Medium, or **Large** (default).                                                          |

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F8ttkoq69FBcWKbEQCDgs%2Fscoped-notification-variant.png?alt=media" alt="The five Scoped Notification variants, each with a title, body text and icon"><figcaption><p>The five variants. Each sets its own background, text and icon colour.</p></figcaption></figure>

***

## Styling

{% tabs %}
{% tab title="Margin" %}
Controls the outer spacing around the notification.

* **Top / Right / Bottom / Left:** Adjust the space on each side.
  {% endtab %}

{% tab title="Padding" %}
Controls the inner spacing between the notification content and its edges.

* **Top / Right / Bottom / Left:** Adjust the inner spacing on each side.
  {% endtab %}

{% tab title="Size" %}
Controls the notification's width.

* **Width / Min Width / Max Width:** Set or constrain the notification width.
  {% endtab %}

{% tab title="Border" %}
Customizes the notification border.

* **Color / Size / Style / Radius:** Set the border color, thickness, line style, and corner rounding.
  {% endtab %}

{% tab title="Scoped Notification" %}
Sets the notification colors, applied to the selected **Variant**.

* **Background Color:** The notification background color.
* **Text Color:** The notification text color.
  {% endtab %}

{% tab title="Icon" %}
Styles the icon shown beside the message.

* **Icon Background Color / Icon Foreground Color:** The icon's background and foreground colors.
* **Icon Radius:** The roundness of the icon corners.
  {% endtab %}
  {% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avonnicomponents.com/flow/flow-components/scoped-notification.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
