Callout eject-only
This component is an eject-only component, specifically designed for wrap/eject, and it's not recommended to be used directly in MDX files.
The Callout component is used to display highlighted information blocks such as tips, warnings, and notes.
We recommend using container syntax which works in both Markdown and MDX files.
Container syntax
In most cases, use the container syntax to create callouts:
This is a note callout
This is a tip callout
This is an info callout
This is a warning callout
This is a danger callout
Details
This is a details callout
This is a callout with a custom title
This is a callout with a custom title
For more container syntax details, see Container.
Component usage
You can also use the Callout component directly in MDX files:
This is a warning with custom title
Customization
You can eject the Callout component to customize its styles and behavior:
This will copy the component to theme/components/Callout. After customization, re-export it in your theme/index.tsx: