Content blocks
Callout
The callout: an emoji and text in a rounded, tinted box. Defaults to π‘ on gray; any block color works.
Callouts draw attention to a tip or warning.
Usage
- Use Callout to highlight a tip, note or warning inside page content.
- Pick an emoji and block color that match the message (for example red for warnings).
- Keep callouts short; one or two per section is enough.
- Donβt use Callout for system feedback in the app UI; use
AlertorToastinstead.
Installation
Install the package (React 19):
terminal
terminal
terminal
Import the styles once, in your app entry or root layout:
/src/main.tsx
Use it anywhere inside your app's <Theme> (see Installation):
/src/CalloutExample.tsx
Examples
Background colors
Callout backgrounds use the lighter <c>-bg-primary tone.
Gray background
Brown background
Orange background
Yellow background
Green background
Blue background
Purple background
Pink background
Red background
Text color and default
A text color (or "default") drops the fill and draws a 1px border instead.
Default: bordered, no fill
With children
Before you start
β’
Read the overview
β’
Pick a template
API Reference
Callout
Based on <div> and supports its props. Adds:
| Prop | Type | Default |
|---|---|---|
icon | ReactNode | "π‘" |
color | BlockColor | "gray_background" |
text | RichText | |
renderLeaf | LeafRenderer | |
children | ReactNode | |
onIconClick | () => void |
calloutBgClass
Record<ColorName, string> of the callout background utilities (bg-n-<c>-bg-primary).
| Prop | Type | Default |
|---|
Accessibility
- The box has
role="note"witharia-roledescription="callout". - The icon is a focusable button labeled βChange callout iconβ.
Β© 2026 Motion. Internal documentation.