Skip to content

Callout

The Callout component (ui:callout) renders a visually distinct block that highlights important information. Use callouts to draw the reader’s attention to tips, warnings, errors, or general notes within your document.

Examples

View Glyph Markdown source
```ui:callout
type: warning
title: Breaking change in v2
content: The refs field now requires an explicit target type. Update your YAML blocks accordingly.
```

Info callout (no title)

View Glyph Markdown source
```ui:callout
type: info
content: Glyph JS validates all YAML payloads at compile time using Zod schemas.
```

Tip callout

View Glyph Markdown source
```ui:callout
type: tip
title: LLM authoring
content: LLMs generate callouts reliably because the schema is minimal -- just type, optional title, and content.
```

Error callout

View Glyph Markdown source
```ui:callout
type: error
title: Validation failed
content: Column key revenue in aggregation does not match any column definition.
```

Properties

PropertyTypeRequiredDefaultDescription
type"info" | "warning" | "error" | "tip"YesThe visual variant that controls color and icon.
titlestringNoAn optional heading displayed at the top of the callout.
contentstringYesThe body text of the callout.
markdownbooleanNofalseEnable inline markdown formatting in content and title.

Markdown Support

Enable inline markdown formatting by setting markdown: true:

View Glyph Markdown source
```ui:callout
type: tip
content: "Check out the **[documentation](https://glyphjs.dev)** for more info!"
markdown: true
```

Supported formatting: bold, italic, code, links

Learn more about markdown in components →

Variants

  • info — A neutral blue callout for general notes and supplementary information.
  • warning — An amber/yellow callout for cautionary messages the reader should be aware of.
  • error — A red callout for critical issues, breaking changes, or error conditions.
  • tip — A green callout for helpful suggestions, best practices, and pro tips.

Accessibility

  • Each callout renders with an appropriate role attribute (role="note" for info/tip, role="alert" for warning/error).
  • The type variant is conveyed through both color and an icon so that the meaning is not color-dependent (WCAG 2.1 AA).
  • When a title is provided, it is rendered as a heading inside the callout for screen-reader landmark navigation.