Back to Components Component · Content · 26
Callout Callout = an inline block with a coloured accent bar and a tinted background, used to add context without breaking the reading flow.
Skip to the modify prompt →
Key correction
The adapter layer replaces the single-format assumption.
MVP pick
One engine exposes an OpenAI-compatible API out of the box.
Risk note
The WebSocket adapter is the largest work item in this phase.
Breaking change
The migrate command is one-way — do not build sync on it.
How to prompt it Copy Prompt
Basic Modify Advanced
Create a callout component.
STYLE
- 4px left accent bar, 8% tinted background, rounded right corners
- four severities: info purple, success green, warning orange, danger red
- bold 14px title plus one body line
STATES
- default, dismissible with a close icon
TECHNICAL
- React
- Tailwind CSS
- shadcn/ui
Make the existing callout dismissible.
Use:
- a close icon at the top-right of the callout
- clicking it collapses the callout over 200ms
- keep the accent bar, colors and copy unchanged
Only add the dismiss behavior.
Create a callout component, replacing the existing one.
Requirements:
- 4px left accent bar, 8% tinted background, rounded right corners
- four severities: info, success, warning, danger
- bold title with a leading icon, one body line
- dismissible: close icon, collapse over 200ms
- full-width in a narrow content column
Keep the surrounding article layout unchanged.
MOTION
- Render static. No enter animation by default.
- If it must be noticed, fade the icon once over 200ms. Nothing else moves.
- Dismiss: same as the alert pattern, 120ms fade with a 4px lift.
- prefers-reduced-motion: no animation.
Modify prompts change only the target — the rest of your page stays untouched.
What is a Callout? A callout is a standing note. Pick the severity, name the accent bar and the tinted background, keep it to a title and one line.
Variants Tap a property to highlight it in the preview.
Info Name this type explicitly in the prompt.
Success A positive confirmation toast (saved, sent, copied).
Warning Name this type explicitly in the prompt.
Danger Name this type explicitly in the prompt.
Accent bar Give a value, not a vibe word.
Tinted background Give a value, not a vibe word.
Title Give a value, not a vibe word. States Tap a property to highlight it in the preview.
Default The resting, valid state of a field before any input or error.
Dismissible Say this state explicitly in the prompt. Anatomy These are the parts to name in your prompt.
01 Accent bar 02 Title 03 Body When to use Emphasizing a correction or a key fact in docs Risk and warning notes inside long content Mild success or error context that stays on the page Avoid when Transient feedback — use a Toast Messages that need a decision — use a Modal More than three callouts per page Copy Prompt Create a callout component.
STYLE
- 4px left accent bar, 8% tinted background, rounded right corners
- four severities: info purple, success green, warning orange, danger red
- bold 14px title plus one body line
STATES
- default, dismissible with a close icon
TECHNICAL
- React
- Tailwind CSS
- shadcn/ui