Skip to main content
GitHub
2 min read

Callouts

Use callouts to highlight notes, tips, warnings, and danger in your docs

Callouts draw attention to important information. The theme provides five types that match common documentation patterns.

Supported types

TypeUse for
infoGeneral information, neutral notes
noteSupplementary or reference information (gray)
tipHelpful tips, best practices
warningImportant notices, caveats
dangerCritical warnings, breaking changes

Examples

Info

Info — Use for general information that isn’t a tip or warning.

Note

Note — Use for extra context or references (e.g. “See also …”).

Tip

Tip — Use for shortcuts, recommendations, or “pro” advice.

Warning

Warning — Use for deprecations, limitations, or things that can go wrong.

Danger

Danger — Use for security, data loss, or breaking changes.

In MDX

Import from @barodoc/theme-docs (full custom) or use the component name your setup exposes:

import { Callout } from "@barodoc/theme-docs";

<Callout type="tip" title="Quick tip">
  Prefer `base` and `site` in config when deploying to a subpath.
</Callout>
  • typeinfo | note | warning | tip | danger (default: info).
  • title — Optional; overrides the default label (e.g. “Info”, “Warning”).

For more examples and API details, see Callout.

Links to