Logo

Callout

Highlight important information, warnings, or errors using the Callout component.


The Callout component is used to highlight important information, warnings, or errors in your documentation.

Usage

Callouts are available out of the box — no import needed.

Example usage
<Callout type="info"> This is an informational message. </Callout> <Callout type="warning"> Be careful with this setting. </Callout> <Callout type="error"> Something went wrong! </Callout>

Output

This is an informational message.

Be careful with this setting.

Something went wrong!

Types

Docstra supports three types of callouts:

TypeColorIconDescription
infoBlueℹ️General information (default)
warningYellow⚠️Caution or important notice
errorRedError or destructive action

Props

PropTypeDefaultDescription
type"info" | "warning" | "error""info"The style variant of the callout
childrenReactNodeThe content to display inside the callout

How is this guide?

Last updated on March 30, 2026