Callout
Highlight notes, tips, warnings, and destructive guidance inside documentation.
Use Callout when a paragraph needs more attention than normal prose but
should still stay inside the reading flow.
For Markdown directive syntax such as :::tip, see
Admonitions.
Import
import { Callout } from '@prosefly/astro-components';Basic Usage
When title is omitted, the callout renders as a compact inline message with an
icon and body content.
<Callout type="warning"> When using a hosted coding plan, follow the tutorial before configuring a dedicated endpoint.</Callout>When using a hosted coding plan, follow the tutorial before configuring a dedicated endpoint.
With Title
Add title when the message needs a short heading. The icon and title share the
first row, while the content appears below.
<Callout type="note" title="Document the default behavior"> The note variant is a safe default for implementation details, caveats, and editorial guidance.</Callout>Document the default behavior
The note variant is a safe default for implementation details, caveats, and editorial guidance.
Variants
Use type to match the intent of the message.
Note
Use notes for neutral context, implementation details, and caveats that do not require immediate action.
Tip
Use tips for recommended workflows, shortcuts, or patterns that help readers complete a task more smoothly.
Warning
Use warnings when a choice can cause confusing behavior, broken output, or additional setup work.
Danger
Use danger callouts for destructive actions, security-sensitive steps, or irreversible changes.
Rich Content
Callouts accept normal MDX content.
Keep examples actionable
Include the smallest working command first:
pnpm add @prosefly/astro-componentsThen explain optional configuration after the command.
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
title | string | none | Optional heading shown above the body content. |
type | 'note' | 'tip' | 'warning' | 'danger' | 'note' | Changes the icon, color, border, and background treatment. |
Behavior
Callouts are static content containers. They do not collapse, dismiss, or add client-side behavior.