# Message

The Message component is used to display important notifications and alerts to users. It communicates status, urgency, and context through clear visual styling such as colour and iconography.

<figure><img src="/files/nuSMMcMdIpP1Rs6rxxQS" alt=""><figcaption></figcaption></figure>

### How to create a Message

1. Log in as a *Content author*.
2. Create a new *Page* or navigate to the page you want to add the Message to.
3. Click on the *Components* dropdown and select *Message*.
4. Open the *Type* dropdown to select the type of Message you want to display:
   1. Information
   2. Error
   3. Success
   4. Warning
5. Add an optional *Title*. This will display next to the icon at the top of the message.
6. Add optional *Content*.
7. Select *Light* or *Dark* theme.
8. Set the *Vertical* spacing.
9. Note: the *Background* is not enabled for the Message.

### Message examples

The colours below are examples using CivicTheme OOTB colour settings.

<figure><img src="/files/nuSMMcMdIpP1Rs6rxxQS" alt="Information style light theme Message component coloured light blue with black writing"><figcaption></figcaption></figure>

<figure><img src="/files/pkqa7E87IgpQUaz98LLh" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/czvh8h0wrZRIb98SxWaY" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/3DDHMn4QitOevnk6GTXj" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/s8piJthuFzrEfMq2ZikW" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/WYcL38b9tTJqc9Opwz05" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/VRUqZWpY0thJPQJP6ewk" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/c2lIGKKQ8V3S4JLGdUU7" alt=""><figcaption></figcaption></figure>

### Further Message resources

#### Storybook

Interact with the [Message component](https://uikit.civictheme.io/?path=/story/organisms-message--message) in Storybook.

#### UX evidence framework

Read the [UX evidence behind the Message component](/components/organisms/message.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://docs.civictheme.io/content-authoring/components/message.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.
