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:callouttype: warningtitle: Breaking change in v2content: The refs field now requires an explicit target type. Update your YAML blocks accordingly.```Info callout (no title)
View Glyph Markdown source
```ui:callouttype: infocontent: Glyph JS validates all YAML payloads at compile time using Zod schemas.```Tip callout
View Glyph Markdown source
```ui:callouttype: tiptitle: LLM authoringcontent: LLMs generate callouts reliably because the schema is minimal -- just type, optional title, and content.```Error callout
View Glyph Markdown source
```ui:callouttype: errortitle: Validation failedcontent: Column key revenue in aggregation does not match any column definition.```Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
type | "info" | "warning" | "error" | "tip" | Yes | — | The visual variant that controls color and icon. |
title | string | No | — | An optional heading displayed at the top of the callout. |
content | string | Yes | — | The body text of the callout. |
markdown | boolean | No | false | Enable inline markdown formatting in content and title. |
Markdown Support
Enable inline markdown formatting by setting markdown: true:
View Glyph Markdown source
```ui:callouttype: tipcontent: "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
roleattribute (role="note"for info/tip,role="alert"for warning/error). - The
typevariant is conveyed through both color and an icon so that the meaning is not color-dependent (WCAG 2.1 AA). - When a
titleis provided, it is rendered as a heading inside the callout for screen-reader landmark navigation.