Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mintlify/components/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Callout component is used to highlight important information in your documentation. It supports multiple predefined variants (info, warning, note, tip, check, danger) as well as fully customizable styling with custom icons and colors.Basic Usage
All Variants
Predefined Variants
The Callout component includes 6 predefined variants, each with its own icon and color scheme:Custom Variant
For full control over appearance, use thecustom variant with your own icon and color:
Props
The content to display inside the callout. Supports any valid React content including text, paragraphs, lists, code blocks, and more.
The predefined variant style to use. Each variant has its own icon and color scheme:
info: Gray/neutral informational style with info iconwarning: Yellow warning style with warning iconnote: Blue note style with note icontip: Green tip style with lightbulb iconcheck: Green success style with checkmark icondanger: Red danger style with danger iconcustom: Allows full customization withiconandcolorprops
Custom icon to display (only used with
variant="custom"). Can be:- A string icon name from FontAwesome or Lucide
- A React component or element
iconType and iconLibrary props.iconType
'brands' | 'duotone' | 'light' | 'regular' | 'sharp-duotone-solid' | 'sharp-light' | 'sharp-regular' | 'sharp-solid' | 'sharp-thin' | 'solid' | 'thin'
The FontAwesome icon style type (only used with
variant="custom" and string icon). Different styles change the weight and appearance of the icon.The icon library to use for string icons (only used with
variant="custom" and string icon).Custom hex color for the callout (only used with
variant="custom"). Automatically generates appropriate border, background, and text colors based on the provided color.Example: "#9333ea", "#3b82f6"Additional CSS classes to apply to the callout container.
Custom aria-label for the icon for accessibility. Overrides the default aria-label for predefined variants.
Advanced Examples
Rich Content
Callouts can contain complex nested content:With Links
Multiple Paragraphs
Custom Icon from React
Accessibility
Backward Compatibility
For backward compatibility, the component also exports named components:The new
variant prop approach is recommended for new implementations.Styling
The Callout component automatically handles:- Dark mode support with appropriate color adjustments
- Responsive spacing and layout
- Proper contrast ratios for accessibility
- Icon positioning and sizing
- Content typography with prose styling
color prop, the component automatically:
- Generates lighter background colors
- Creates appropriate border colors
- Adjusts text colors for dark/light modes
- Ensures proper contrast for readability