Admonitions¶
Void styles the standard MkDocs admonition extension, plus collapsible
??? (details) blocks and inline variants. Every type maps to a themed accent
color and a small icon in the title.
Usage¶
Types¶
Note / Info / Example¶
Note
A generic note.
Custom title
Custom titles are supported.
Example
An example block.
Abstract / Summary / TLDR¶
Summary
A condensed takeaway.
Tip / Hint / Question / FAQ¶
Tip
A helpful tip.
Question
A question worth asking.
Success / Done / Check¶
Success
Everything worked.
Warning / Caution / Attention¶
Warning
Watch out.
Danger / Error / Failure / Bug / Important¶
Danger
This is destructive.
Bug
Known defect.
Important
Really important requirement.
Quote¶
Quote
"Less, but better." — Dieter Rams
Collapsible (details)¶
Use ??? for an initially-closed block and ???+ for an open-by-default block.
Expand me
Hidden until expanded.
Danger
Open by default and collapsible.
Inline¶
The inline class floats an admonition beside content.
Note
Floats to the left in this layout.
Paragraph text that wraps around the inline admonition demonstrates the floating behavior. Copy continues to flow around the floated box, letting you place short callouts against prose without breaking the reading flow.
Custom types¶
Any unknown type still renders as a default-styled admonition. You can add your own by defining a color for the class in your CSS: