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 Alert or Toast instead.

Installation

Install the package (React 19):

terminal
npm install @krackedui/motion

Import the styles once, in your app entry or root layout:

/src/main.tsx
import '@krackedui/motion/styles.css';

Use it anywhere inside your app's <Theme> (see Installation):

/src/CalloutExample.tsx
import { BlockContent, Callout, rt } from '@krackedui/motion';

export function CalloutExample() {
  return (
    <BlockContent>
      <Callout text={rt('Callouts draw attention to a tip or warning.')} />
    </BlockContent>
  );
}

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
🚨
Red text, bordered

With children

🧭
Before you start
β€’
Read the overview
β€’
Pick a template

API Reference

Callout

Based on <div> and supports its props. Adds:

PropTypeDefault
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).

PropTypeDefault

Accessibility

  • The box has role="note" with aria-roledescription="callout".
  • The icon is a focusable button labeled β€œChange callout icon”.
Β© 2026 Motion. Internal documentation.