Callouts & Alerts
Create attention-grabbing callouts, alerts, and highlighted information boxes using Documentation.AI's callout components for ACME Company.
Draw attention to important information with visually distinct callout boxes. Documentation.AI's callout components help you highlight tips, warnings, errors, and other critical information.
Basic Callout Types
Info callouts
Use info callouts for helpful context, explanations, or additional details:
Getting started: New to our platform? Check out our quickstart guide to set up your account in under 10 minutes.
The API rate limit is 1000 requests per hour per API key. Contact support if you need higher limits for production use.
<Callout kind="info">
**Getting started**: New to our platform? Check out our quickstart guide to set up your account in under 10 minutes.
</Callout>
<Callout kind="info">
The API rate limit is 1000 requests per hour per API key. Contact support if you need higher limits for production use.
</Callout>
Tip callouts
Share helpful tips, best practices, and recommendations:
Pro tip: Use environment variables to store API keys instead of hardcoding them in your application. This keeps your credentials secure and makes deployment easier.
Enable browser notifications to get real-time updates when team members comment on your tasks or when deadlines are approaching.
<Callout kind="tip">
**Pro tip**: Store sensitive configuration in environment variables rather than hardcoding values.
</Callout>
<Callout kind="tip">
Enable browser notifications to get real-time updates when team members comment on your tasks or when deadlines are approaching.
</Callout>
Success callouts
Celebrate achievements, confirm successful operations, or highlight positive outcomes:
Congratulations! Your workspace has been successfully created. You can now invite team members and start your first project.
Integration complete: Your GitHub repository is now connected. Pull requests will automatically create tasks in your project.
<Callout kind="success">
**Success!** Your setup is complete. You can now start using the platform.
</Callout>
<Callout kind="success">
**Integration complete**: Your GitHub repository is now connected. Pull requests will automatically create tasks in your project.
</Callout>
Alert callouts
Use alert callouts for important warnings, cautions, or things users should pay attention to:
Important: Changing your workspace subdomain will affect all existing bookmarks and shared links. Make sure to update any saved URLs.
Breaking change in v2.0: The createUser() function now requires an email parameter. Update your code before upgrading.
<Callout kind="alert">
**Important**: Changes to your configuration may affect existing integrations.
</Callout>
<Callout kind="alert">
**Breaking change in v2.0**: API function signatures have been updated. Review the migration guide.
</Callout>
Danger callouts
Reserve danger callouts for critical warnings about destructive actions or serious issues:
Warning: Deleting your workspace is permanent and cannot be undone. All projects, tasks, and data will be lost forever.
Security alert: Never commit API keys or passwords to version control. Use environment variables or secure key management systems instead.
<Callout kind="danger">
**Warning**: Destructive operations cannot be undone. Make sure you have backups.
</Callout>
<Callout kind="danger">
**Security alert**: Keep credentials secure and never expose them in code repositories.
</Callout>
Advanced Callout Usage
Rich content callouts
Callouts can contain any markdown content including lists, code, and links:
Setting up your development environment:
- Install Node.js 16+ from nodejs.org
- Clone the repository:
git clone https://github.com/yourcompany/your-project.git cd your-project - Install dependencies:
npm install - Start the development server:
npm run dev
The application will be available at http://localhost:3000
<Callout kind="info">
**Development setup example**:
1. Install dependencies
2. Configure environment variables
3. Start the development server
4. Open your browser to localhost:3000
Full setup instructions are available in our guide.
</Callout>
Multi-paragraph callouts
Use callouts for longer explanations that span multiple paragraphs:
Understanding API versioning
Our API uses semantic versioning to ensure backward compatibility while allowing for new features and improvements.
Version format: v{major}.{minor}.{patch}
- Major version changes include breaking changes to existing endpoints
- Minor version changes add new features without breaking existing functionality
- Patch version changes include bug fixes and small improvements
Current version: v2.1.3
Supported versions: v2.x.x (all minor and patch versions)
Deprecated versions: v1.x.x (support ends December 2024)
We recommend always using the latest minor version to get the newest features and security updates.
Nested callouts (use sparingly)
In rare cases, you might need to nest callouts for complex information hierarchies:
Database migration guide
Follow these steps carefully when migrating to the new database schema:
Before you start: Create a complete backup of your database. This process modifies existing data and cannot be easily reversed.
- Run the migration script
- Verify data integrity
- Update your application configuration
Migration complete: Your database is now using the new schema. Performance should improve by approximately 30%.
Best practice: Avoid nesting callouts more than one level deep, as it can create visual confusion and reduce readability.
Callout Content Patterns
Version and compatibility information
Compatibility: This feature requires API version 2.1 or higher. It's available in all paid plans and supports the following programming languages:
- JavaScript/TypeScript ✅
- Python ✅
- Go ✅
- PHP ✅
- Ruby ✅
- Java (coming soon)
Prerequisites and requirements
Prerequisites: Before following this guide, make sure you have:
- A verified account with appropriate permissions
- API credentials configured in your environment
- Basic familiarity with REST APIs
- A development environment set up
Error troubleshooting
Common error: Authentication failed (401)
Cause: Invalid or expired API token
Solution:
- Check that your API key is correct
- Verify the token hasn't expired
- Ensure you're using the correct authentication header format:
Authorization: Bearer YOUR_API_TOKEN
Still having issues? Contact support with your request ID.
Migration and upgrade notices
Upcoming change: The /v1/users endpoint will be deprecated on January 1, 2025.
Action required: Update your code to use /v2/users before the deadline.
What's different in v2:
- Improved response format with consistent error handling
- New pagination parameters (
limitandoffset) - Enhanced filtering options
Feature announcements
New feature: Real-time collaboration is now available!
See changes from your team members instantly as they edit projects. This feature is included in all paid plans and can be enabled in your workspace settings.
Callout Best Practices
When to use each type
| Callout Type | Use For | Examples |
|---|---|---|
| Info | Context, explanations, additional details | API limits, feature availability, related resources |
| Tip | Best practices, recommendations, helpful hints | Performance optimizations, workflow suggestions |
| Success | Positive confirmation, achievements, completions | Successful setup, feature enabled, task completed |
| Alert | Important warnings, attention-required items | Breaking changes, important updates, cautions |
| Danger | Critical warnings, destructive actions | Data loss warnings, security issues, permanent actions |
Writing effective callout content
Do's:
- ✅ Start with a clear heading that summarizes the main point
- ✅ Use action-oriented language for things users need to do
- ✅ Include specific examples when explaining concepts
- ✅ Provide next steps or links for users who want more information
- ✅ Keep content scannable with bullets, short paragraphs, and formatting
Don'ts:
- ❌ Overuse callouts - too many reduces their impact
- ❌ Use danger callouts for minor issues - save them for truly critical warnings
- ❌ Bury important information in long callout text
- ❌ Use vague language like "be careful" without explaining why
- ❌ Skip the heading - readers scan callouts quickly and need context
Callout placement strategy
Strategic placement:
- Beginning of sections - Set expectations or provide context
- Before code examples - Explain what the code does or prerequisites
- After instructions - Confirm success or provide troubleshooting
- End of sections - Summarize key points or provide next steps
Avoid placing callouts:
- In the middle of step-by-step instructions (breaks flow)
- Too close together (creates visual noise)
- For information better suited to regular text
Callout Accessibility
Screen reader considerations
Callouts are marked up with proper ARIA labels to ensure they're accessible:
- Info callouts: Marked as informational content
- Tip callouts: Marked as helpful hints
- Success callouts: Marked as positive status messages
- Alert callouts: Marked as important warnings
- Danger callouts: Marked as critical alerts that demand attention
Visual accessibility
- Color coding: Each callout type uses distinct colors that meet WCAG contrast requirements
- Icons: Visual icons supplement color coding for users with color blindness
- Typography: Clear hierarchy and readable font sizes
- Focus states: Keyboard navigation support with visible focus indicators
Integration with Other Components
Callouts with code examples
Performance optimization: Use connection pooling to improve database performance:
const pool = new Pool({
connectionString: process.env.DATABASE_URL,
max: 20, // Maximum connections
idleTimeoutMillis: 30000,
connectionTimeoutMillis: 2000,
});
This reduces connection overhead and improves response times by up to 40%.
Callouts with expandable content
Advanced configuration options:
What's next?
Master more component types:
- Images & Media - Add visual elements to enhance callouts
- Tables & Lists - Organize information within callouts
- Expandables & Tabs - Create interactive callout content
- Code Examples - Combine callouts with code for better documentation