---
title: Message
layout: docs
theme: library
doc-tab: components
doc-subtab: message
breadcrumb:
- home
- documentation
- components
- components-message
meta:
colors: true
sizes: true
variables: true
---
{% capture message_example %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque risus mi, tempus quis placerat ut, porta nec
nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus
diam, et dictum
felis venenatis efficitur. Aenean ac
eleifend lacus, in mollis lectus. Donec sodales, arcu et
sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a
neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
{% endcapture %} {% capture message_dark_example %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque risus mi, tempus quis placerat ut, porta nec
nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus
diam, et dictum
felis venenatis efficitur. Aenean ac
eleifend lacus, in mollis lectus. Donec sodales, arcu et
sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a
neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
{% endcapture %} {% capture message_small %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque risus mi, tempus quis placerat ut, porta nec
nulla.Nullam gravida purus diam, et dictum
felis venenatis efficitur.
Aenean ac
eleifend lacus, in mollis lectus.
{% endcapture %} {% capture message_normal %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque risus mi, tempus quis placerat ut, porta nec
nulla.Nullam gravida purus diam, et dictum
felis venenatis efficitur.
Aenean ac
eleifend lacus, in mollis lectus.
{% endcapture %} {% capture message_medium %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque risus mi, tempus quis placerat ut, porta nec
nulla.Nullam gravida purus diam, et dictum
felis venenatis efficitur.
Aenean ac
eleifend lacus, in mollis lectus.
{% endcapture %} {% capture message_large %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque risus mi, tempus quis placerat ut, porta nec
nulla.Nullam gravida purus diam, et dictum
felis venenatis efficitur.
Aenean ac
eleifend lacus, in mollis lectus.
{% endcapture %} {% capture message_body_example %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque risus mi, tempus quis placerat ut, porta nec
nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus
diam, et dictum
felis venenatis efficitur. Aenean ac
eleifend lacus, in mollis lectus. Donec sodales, arcu et
sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a
neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
{% endcapture %} {% capture message_body_dark_example %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque risus mi, tempus quis placerat ut, porta nec
nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus
diam, et dictum
felis venenatis efficitur. Aenean ac
eleifend lacus, in mollis lectus. Donec sodales, arcu et
sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a
neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
{% endcapture %}
The Bulma message
is a multi-part component:
- the
message
container
-
the optional
message-header
that can hold a title and a
delete
element
- the
message-body
for the longer body of the message
{% include docs/elements/snippet.html content=message_example %} {% include
docs/elements/anchor.html name="Colors" %}
The message component is available in all the
different colors defined by the
$colors
Sass map.
{% include docs/elements/snippet.html content=message_dark_example more=true %}
{% for color in site.data.colors.justColors %} {% capture foobar %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque risus mi, tempus quis placerat ut, porta nec
nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus
diam, et dictum
felis venenatis efficitur. Aenean ac
eleifend lacus, in mollis lectus. Donec sodales, arcu et
sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a
neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
{% endcapture %} {% include docs/elements/snippet.html content=foobar more=true
%} {% endfor %} {% include docs/elements/anchor.html name="Message body only" %}
You can remove the message-header
if you don't need it, which
will add a left border to the message-body
:
{% include docs/elements/snippet.html content=message_body_example %} {% include
docs/elements/snippet.html content=message_body_dark_example %} {% for color in
site.data.colors.justColors %} {% capture foobar %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque risus mi, tempus quis placerat ut, porta nec
nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus
diam, et dictum
felis venenatis efficitur. Aenean ac
eleifend lacus, in mollis lectus. Donec sodales, arcu et
sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a
neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
{% endcapture %} {% include docs/elements/snippet.html content=foobar %} {%
endfor %} {% include docs/elements/anchor.html name="Sizes" %}
You can add one of 3 size modifiers to the
message
component:
{% include docs/elements/snippet.html content=message_small %} {% include
docs/elements/snippet.html content=message_normal %} {% include
docs/elements/snippet.html content=message_medium %} {% include
docs/elements/snippet.html content=message_large %} {% include
docs/components/variables.html type='component' %}