Bootstrap 5 Callout
A Callout is a styled block used to highlight important information that stands apart from the main body text — think warnings, tips, notes, or contextual alerts within documentation or article content. Unlike a dismissible Alert, a Callout is a static, non-interactive element meant to stay visible and add editorial emphasis. Use it when a piece of content needs to catch the reader's eye without interrupting the page flow with a modal or toast.
Primary Class
.calloutCommon Use Cases
- →Documentation pages flagging deprecated API methods with a 'Breaking Change' callout so developers don't miss critical upgrade notes
- →Tutorial articles using a 'Pro Tip' callout to surface an advanced technique inline without burying it in a footnote
- →Legal or compliance pages using a 'Required' callout to draw attention to mandatory steps in a multi-step process
- →SaaS onboarding flows using an 'Info' callout inside a settings panel to explain why a particular field is locked to the account admin
Variants & Classes
| Variant | Description |
|---|---|
| Callout Default | Standard callout with Bootstrap's default styling. |
| Callout Responsive | Responsive variant that adapts to different screen sizes. |
Code Example
<div class="callout callout-warning"> <h5 class="callout-heading">Breaking Change in v3.0</h5> <p class="mb-0">The <code>getUserData()</code> method has been removed. Use <code>fetchUser(id)</code> instead. See the <a href="/migration-guide">migration guide</a> for full details.</p> </div> <div class="callout callout-info mt-4"> <h5 class="callout-heading">Pro Tip</h5> <p class="mb-0">You can chain multiple <code>filter()</code> calls before calling <code>render()</code> — the pipeline only executes once, keeping performance predictable at scale.</p> </div>
Live Examples
Basic Callout
Canvas Framework Variants
The Canvas template extends Bootstrap 5 with 1,658+ component variants. Generate any of these using Canvas Builder:
- ✓Canvas Builder generated callout with custom colours
- ✓Callout with interactive states
- ✓Responsive callout for all screen sizes
Best Practices
Use semantic colour variants, not just visual ones
Match the callout variant to the actual meaning — use `callout-danger` for destructive actions, `callout-warning` for recoverable issues, and `callout-info` for neutral context. Misusing colour trains users to ignore the distinction, which defeats the purpose.
Keep callout headings short and front-loaded
Write headings like 'Required Step' or 'Known Limitation' — not 'Please Note the Following'. Screen readers and skimmers hit the heading first; it should communicate the type of callout before the body text is even read.
Avoid nesting callouts inside other callouts
Nested callouts create visual noise and signal a structural problem in your content hierarchy. If you feel the need to nest, split the content into separate sections or use a list inside a single callout instead.
Add a left-border accent via a utility or custom class for extra visual weight
Bootstrap 5 doesn't ship a native Callout component, so pair `border-start border-4 border-warning` with `bg-warning bg-opacity-10 p-3 rounded` to create a clean, accessible callout using only utility classes without writing custom CSS.