> For the complete documentation index, see [llms.txt](https://docs.civictheme.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.civictheme.io/content-authoring/components/message.md).

# 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="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2FxI8ZGwRECaGAPXFOrI2e%2Fmessage-info-light.png?alt=media&amp;token=999ca047-dd04-4d14-87eb-3df94d3891f4" 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="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2FxI8ZGwRECaGAPXFOrI2e%2Fmessage-info-light.png?alt=media&amp;token=999ca047-dd04-4d14-87eb-3df94d3891f4" alt="Information style light theme Message component coloured light blue with black writing"><figcaption></figcaption></figure>

<figure><img src="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2FXzuEuJnkkOw2xtsRTXRo%2Fmessage-info-dark.png?alt=media&amp;token=703bd757-7cfb-49ad-a961-58184cae71f8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2FwL8Qrq1xbnTHaAV7EcpJ%2Fmessage-warning-light.png?alt=media&amp;token=5b7fea35-4a9e-42a8-b206-44c6229d6015" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2F93cwrrkUyZho2SuOkKbm%2Fmessage-warning-dark.png?alt=media&amp;token=31fb7a46-9199-4fb3-b5d6-d3555be9fe0c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2FLQJYdVpR5RPLiCTBJlt6%2Fmessage-success-light.png?alt=media&amp;token=6f90c510-5b25-4060-95a3-6c80baf5af7d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2FF4RvHADQgcWyvMKdMiPh%2Fmessage-success-dark.png?alt=media&amp;token=000e3ed6-b5f2-4983-8f54-20601ed8c5e1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2FrHzNApA4fEcow84gPCgr%2Fmessage-error-light.png?alt=media&amp;token=82624708-f67c-4924-b3f4-197753eb2c5c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2FB2SEZtlpKGbh4M5NldAN%2Fmessage-error-dark.png?alt=media&amp;token=10a95a36-e780-49b4-8079-6b560c9eb98f" 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
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.civictheme.io/content-authoring/components/message.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.
