The Callout component creates visually distinct blocks to highlight important information, warnings, tips, or notes within your content.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/devscribe-team/webeditor/llms.txt
Use this file to discover all available pages before exploring further.
Node specification
The callout is a block-level node that can contain other block content.The callout type that determines icon and color scheme. Available options:
info, warning, caution, important, tipUsage
Insert via command menu
Type/callout in the editor and select the Callout option from the command menu. The callout will be inserted as an info type by default.
Insert via input rule
Type<callout followed by optional type attribute:
Legacy syntax
The callout also supports legacy tag names that map to specific types:Programmatic insertion
Use theinsertCallout function to insert a callout programmatically:
Attributes
The callout node spec defines a single attribute:Callout types
Each type has distinct styling and iconography:Blue color scheme with Info icon. Used for general notes and information.
- Icon:
Infofrom Lucide - Colors:
text-blue-600,bg-blue-500/10,border-blue-500/20 - Header: “Note”
Yellow color scheme with Triangle Alert icon. Used for warnings and cautions that need attention.
- Icon:
TriangleAlertfrom Lucide - Colors:
text-yellow-600,bg-yellow-500/10,border-yellow-500/20 - Header: “Warning”
Red color scheme with Octagon Alert icon. Used for critical warnings and dangerous actions.
- Icon:
OctagonAlertfrom Lucide - Colors:
text-red-600,bg-red-500/10,border-red-500/20 - Header: “Caution”
Violet color scheme with Message Square Warning icon. Used for important information.
- Icon:
MessageSquareWarningfrom Lucide - Colors:
text-violet-600,bg-violet-500/10,border-violet-500/20 - Header: “Important”
Green color scheme with Lightbulb icon. Used for helpful tips and best practices.
- Icon:
Lightbulbfrom Lucide - Colors:
text-green-600,bg-green-500/10,border-green-500/20 - Header: “Tip”
Editing
In edit mode, click the callout icon to open the type selection modal where you can change between the five available types.The callout type can be changed at any time without losing the content inside.