01
Overview
Reference usage
Inline highlight block for tips, warnings, or contextual notes within content flow.
Usage
Neutral note with an action
variant="neutral" is a plain note that is not a status: it takes the neutral tokens instead of a status tint, and its row is vertically centred, so an icon and an action line up with the text however many lines it wraps to. Use it to explain a state, with one link or button at the inline end:
02
When to use
Use when
- Drawing attention to tangential information nested inside prose, documentation, or article content.
- Calling out a tip, note, or caveat that belongs next to the content it qualifies.
- Explaining a state in a quiet neutral note that is not a problem, with one link or button at its end.
Avoid when
- Announcing a transient or urgent status — use alert or banner instead.
- Communicating a page-wide system message — use banner so it reads as a landmark region.
03
Examples
Basic callout
Inline aside highlighting a tip next to body content.
Neutral note with an action
A plain note that explains a state, with an icon and one link at the inline end.
Callout variants
All four semantic variant styles for inline callouts.
04
Props
Name | Type | Default | Description |
|---|---|---|---|
variant | 'neutral''info''success''warning''danger' | 'info' | Visual + semantic variant. Default 'info'; 'neutral' is a plain note with no status tint. |
semantic | 'aside' | 'note' | 'aside' | Root semantics. Default 'aside'; use 'note' for static note semantics without a complementary landmark. |
title | text | Optional title rendered as a <p class="cinder-callout__title">.
Rendered as a paragraph rather than a heading element so the
callout does not inject an entry into the document outline. If a
callout genuinely participates in the outline (e.g. it titles a
standalone section), wrap it in a <section> with its own heading
rather than promoting this prop to <h*>.
When supplied and no aria-label or aria-labelledby is passed
on rest props, the title also becomes the aria-label of the
root element so the landmark or note has an accessible name. | |
icon | snippet | Optional decorative icon rendered inside an aria-hidden wrapper.
The icon is a second visual channel alongside variant color — it
helps satisfy WCAG 1.4.1 (Use of Color) by ensuring the variant is
conveyed by more than color alone. The accessible meaning still
lives in title and/or children; the icon must not be the only
carrier of information. | |
action | snippet | Optional action rendered at the inline end of the row, usually one Link or Button, such
as "Open attempt 5". It is interactive content, so it is the one part of a callout a person
can act on; the callout itself stays static. | |
children required | snippet | Callout body content. |