Callouts with rich content including lists, code, and links
Follow these steps to integrate PM7 components:
npm install @pm7/core
import '@pm7/core/dist/pm7.css'
For detailed instructions, check out our getting started guide.
Here's how to create a complete callout with all elements:
<div class="pm7-callout pm7-callout--info">
<h4 class="pm7-callout-header">
<svg class="pm7-callout-icon">...</svg>
Header Text
</h4>
<div class="pm7-callout-body">
<p>Your content here</p>
</div>
</div>
What makes PM7 callouts special:
Breaking Changes in Version 3.0:
We've made several improvements that require minor updates to your code:
.pm7-alert
class has been renamed to .pm7-callout
.pm7-callout-icon
instead of .pm7-icon
--compact
modifier is now --sm
for consistency
Migration steps:
Run the following find/replace commands in your codebase:
pm7-alert → pm7-callout
pm7-alert-body → pm7-callout-body
--compact → --sm