This version of this component hasn't been branded yet.

Please check the latest version, 2.4.0, as branding is a relatively new addition to our components.

o-message

Product messaging component used for alerting and informing

active

Alert Message

Alert messages (success, error and neutral)

<h6>Alert Messages</h6>
<div class="demo-message">
	<div class="o-message o-message--alert o-message--error" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">
					The quick brown fox did <span class="o-message__content-highlight">not</span> jump over the lazy dogs.
				</p>
				<div class="o-message__actions">
					<a href="#" class="o-message__actions__primary">Button</a>
					<a href="#" class="o-message__actions__secondary">Text link</a>
				</div>
			</div>
		</div>
	</div>

	<div class="o-message o-message--alert o-message--neutral" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">
					There&apos;s a fox, and some lazy dogs. Many lazy dogs. Many, many, many lazy dogs. Only one fox. Many, many, many lazy dogs.
				</p>
				<div class="o-message__actions">
					<a href="#" class="o-message__actions__primary">Button</a>
					<a href="#" class="o-message__actions__secondary">Text link</a>
				</div>
			</div>
		</div>
	</div>

	<div class="o-message o-message--alert o-message--success" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">
					<span class="o-message__content-highlight">Hooray!</span>
					The quick brown fox jumped over the lazy dogs!
				</p>
				<div class="o-message__actions">
					<a href="#" class="o-message__actions__primary">Button</a>
					<a href="#" class="o-message__actions__secondary">Text link</a>
				</div>
			</div>
		</div>
	</div>

	<div class="o-message o-message--alert-bleed o-message--success" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">
					<span class="o-message__content-highlight">Hooray!</span>
					The quick brown fox jumped over the lazy dogs!
				</p>
			</div>
		</div>
	</div>



</div>

Alert Inner Message

Inner alert messages (success, error and neutral)

<h6 class="center">Alert Messages</h6>

<div class="demo-inner-message">
	<div class="o-message o-message--alert-inner o-message--success" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">
					<span class="o-message__content-highlight">Hooray!</span>
					<span class="o-message__content-detail">The quick brown fox jumped over the lazy dogs!</span>
				</p>
				<p class="o-message__content--additional">Did you know that that sentence uses all of the letters in the alphabet at least once?</p>

				<div class="o-message__actions">
					<a href="#" class="o-message__actions__primary">Button</a>
					<a href="#" class="o-message__actions__secondary">Text link</a>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="demo-inner-message">
	<div class="o-message o-message--alert-inner o-message--neutral" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">
					<span class="o-message__content-highlight">Meh.</span>
					<span class="o-message__content-detail">There&apos;s a fox, and some lazy dogs</span>
				</p>

				<div class="o-message__actions">
					<a href="#" class="o-message__actions__primary">Button</a>
					<a href="#" class="o-message__actions__secondary">Text link</a>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="demo-inner-message">
	<div class="o-message o-message--alert-inner o-message--error" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">
					<span class="o-message__content-highlight">Oops.</span>
					<span class="o-message__content-detail">The quick brown fox did not jump over the lazy dogs.</span>
				</p>
				<p class="o-message__content-additional">But that sentence still uses all of the letters in the alphabet at least once!</p>

				<div class="o-message__actions">
					<a href="#" class="o-message__actions__primary">Button</a>
					<a href="#" class="o-message__actions__secondary">Text link</a>
				</div>
			</div>
		</div>
	</div>
</div>

Notice Message

Alert messages (inform, warning and warning-light)

<h6>Notice Messages</h6>

	<div class="o-message o-message--notice o-message--inform" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">There are lazy dogs, maybe in a field, maybe not. It&apos;s important that you are informed of this fact.</p>
				<div class="o-message__actions">
					<a href="#" class="o-message__actions__primary">Button</a>
					<a href="#" class="o-message__actions__secondary">Text link</a>
				</div>
			</div>
		</div>
	</div>

	<div class="o-message o-message--notice o-message--warning" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">There are lazy dogs, maybe in a field, maybe not. It&apos;s important that you are informed of this fact.</p>
				<div class="o-message__actions">
					<a href="#" class="o-message__actions__primary">Button</a>
					<a href="#" class="o-message__actions__secondary">Text link</a>
				</div>
			</div>
		</div>
	</div>

	<div class="o-message o-message--notice o-message--warning-light" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">There are lazy dogs, maybe in a field, maybe not. It&apos;s important that you are informed of this fact.</p>
			</div>
		</div>
	</div>

Notice Inner Message

Inner alert messages (inform, warning and warning-light)

<h6 class="center">Notice Messages</h6>
<div class="demo-inner-message">
	<div class="o-message o-message--notice-inner o-message--inform" data-o-component="o-message" data-close="false">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">There are lazy dogs, maybe in a field, maybe not. It&apos;s important that you are informed of this fact. There may also be a fox. This is unconfirmed.</p>
				<div class="o-message__actions">
					<a href="#" class="o-message__actions__primary">Button</a>
					<a href="#" class="o-message__actions__secondary">Text link</a>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="demo-inner-message">
	<div class="o-message o-message--notice-inner o-message--warning" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">There are lazy dogs, maybe in a field, maybe not. It&apos;s important that you are informed of this fact. There may also be a fox. This is unconfirmed.</p>
			</div>
		</div>
	</div>
</div>

<div class="demo-inner-message">
	<div class="o-message o-message--notice-inner o-message--warning-light" data-o-component="o-message">
		<div class="o-message__container">
			<div class="o-message__content">
				<p class="o-message__content-main">There are lazy dogs, maybe in a field, maybe not. It&apos;s important that you are informed of this fact. There may also be a fox. This is unconfirmed.</p>
				<div class="o-message__actions">
					<a href="#" class="o-message__actions__primary">Button</a>
					<a href="#" class="o-message__actions__secondary">Text link</a>
				</div>
			</div>
		</div>
	</div>



</div>

Imperative

Imperative alert messages regular, inner and bleed)

<h6>Alert and notice messages</h6>
<div class="list-of-demo-buttons">
	<button class="demo-button" id="alert-success">Success Alert</button>
	<button class="demo-button" id="alert-neutral">Neutral Alert</button>
	<button class="demo-button" id="alert-error">Error Alert</button>
	<button class="demo-button" id="alert-error-bleed">Error Alert(bleed)</button>
	<button class="demo-button" id="notice-inform">Inform Notice</button>
	<button class="demo-button" id="notice-warning">Warning Notice</button>
	<button class="demo-button" id="notice-warning-light">Light Warning Notice</button>
</div>

<h6>Inner alert and notice messages</h6>
<div class="list-of-demo-buttons">
	<button class="demo-button" id="inner-alert-success">Success Inner Alert</button>
	<button class="demo-button" id="inner-alert-neutral">Information Inner Alert</button>
	<button class="demo-button" id="inner-alert-error">Error Inner Alert</button>
	<button class="demo-button" id="inner-notice-inform">Inform Inner Alert</button>
	<button class="demo-button" id="inner-notice-warning">Warning Inner Alert</button>
	<button class="demo-button" id="inner-notice-warning-light">Light Warning Inner Alert</button>
</div>

<div class="demo-inner" data-o-component="o-message"></div>
Bower Dependencies
o-colors ^4.1.5
o-typography ^5.5.0
o-buttons ^5.11.1
o-icons ^5.6.0
GitHub Repository

Quickstart

Build Service

Add the following to your <script> and <link> tags.

o-message@^2.2.2

How do I do that?

For more information see the Origami build service.

Manual Build Process

Run the following command in the root directory of your project, to add this dependency to your bower.json file:

bower install --save "o-message"@"^2.2.2"

For more information see the Origami build process.