
A top bar for notification messages. Dismiss it by clicking the x. Works with Django, but that's optional.
Here is a screenshot of MessageBar being used on https://www.djangopackages.com:

To see a live demo of several MessageBars in action, see http://audreyr.github.io/messagebar/demo/.
To run the demo locally:
bash
npm install
grunt
```html
```
```html
```
```html
This is a notification. You can click it away if you want.
<button type="button" class="close" data-dismiss="message">×</button>
```
javascript
$(".messagebar").messageBar({
slide: false
});
(Note: slide: true hasn't been implemented yet. See https://github.com/audreyr/messagebar/issues/1 for more info. If you feel like implementing that feature, go for it and send a pull request!)
jQuery MessageBar can easily be connected to Django's messages framework, allowing your web application to display notifications as top bars that can be clicked away.
This is similar to the notification bars used in many popular web applications, such as StackOverflow.
```html {% for message in messages %}
{{ message }}
<button type="button" class="close" data-dismiss="message">×</button>
{% endfor %} ```
Change the names of the classes in messagebar.css to match Django's built-in message levels of:
debug
See https://docs.djangoproject.com/en/dev/ref/contrib/messages/#message-tags for more info.
$ claude mcp add messagebar \
-- python -m otcore.mcp_server <graph>