Table of Contents▼
Info Boxes
The info-box component displays styled messages inside your documentation.
It is useful for:
- Tips
- Warnings
- Important information
- Additional notes
Basic Usage
::info-box{type="info"}
This is an information box.
::
Result:
This is an information box.
Available Types
The component supports different styles using the type property.
| Type | Purpose |
|---|---|
info | General information |
tip | Helpful suggestions |
important | Important notes |
alert | Warnings or critical information |
help | Help messages |
download | Download-related information |
todo | Tasks or unfinished items |
Examples
Tip
::info-box{type="tip"}
Remember to backup your files.
::
Remember to backup your files.
Warning
::info-box{type="alert"}
This action cannot be undone.
::
This action cannot be undone.
Custom Content
Info boxes support Markdown formatting.
::info-box{type="important"}
**Important:** Always keep your dependencies updated.
::
Important: Always keep your dependencies updated.
Width
The width can be adjusted using the width property.
Example:
::info-box{type="info" width="60%"}
A smaller information box.
::
A smaller information box.
Table of Contents