Callouts and alerts
Use callouts to highlight important information, warnings, tips, and notes. They draw attention to content that readers should not miss.
Basic callout
Callout types
Attributes
info, tip, warning, error, success, note.
Without a title
You can omit the title for a simpler presentation:
Markdown inside callouts
Callouts support full Markdown content including bold, italic, lists, links, and code:
You can use:
- Bold and italic text
inline codeand links- Nested lists and other formatting
Banners
Banners are dismissible notifications that span the full width of the content area. Use them for announcements or temporary notices.
info, warning, error, success, neutral. Defaults to neutral.
Badges
Inline badges for labeling and categorization:
default, success, warning, danger, info, neutral, purple.
When to use each type
| Type | Use for |
|---|---|
info |
Supplementary context, prerequisites |
tip |
Best practices, recommendations |
warning |
Potential gotchas, compatibility notes |
error |
Breaking changes, critical requirements |
success |
Confirmed behavior, completed steps |
note |
General remarks, asides |
Familiar names
If you're coming from Mintlify or another MDX tool, these PascalCase tag names work directly — DocsLit rewrites them at build time:
| MDX-style | Resolves to |
|---|---|
<Note> |
<wc-callout type="info" title="Note"> |
<Info> |
<wc-callout type="info" title="Info"> |
<Tip> |
<wc-callout type="tip" title="Tip"> |
<Warning> |
<wc-callout type="warning" title="Warning"> |
<Caution> |
<wc-callout type="warning" title="Caution"> |
<Danger> |
<wc-callout type="danger" title="Danger"> |
<Check> |
<wc-callout type="success" title="Check"> |
<Success> |
<wc-callout type="success" title="Success"> |