Warn
Default — no modifier class.
Default warn tone.
Inline guidance notes — warn by default, with info and danger tones.
Live
Warn callout — review imported fields before saving.
Info callout — optional guidance without blocking.
<p class="ui-callout" role="note">
<span class="ui-icon ui-icon--warning ui-callout__icon" aria-hidden="true"></span>
<span>Review imported fields before saving.</span>
</p>
<p class="ui-callout ui-callout--info" role="note">…</p>
<p class="ui-callout ui-callout--danger" role="note">…</p>
import { Callout } from 'caustica-design/core'
import 'caustica-design/css'
<Callout>Review imported fields before saving.</Callout>
<Callout tone="info">Optional guidance without blocking.</Callout>
<Callout tone="danger">Destructive side effects apply.</Callout>
Default — no modifier class.
Default warn tone.
.ui-callout--info.
Informational guidance.
.ui-callout--danger.
High-risk or blocking note.
role="note" — keep copy concise and actionable.aria-hidden); meaning lives in the text.| Class | Description |
|---|---|
.ui-callout |
Base warn callout. |
.ui-callout--info |
Info tone. |
.ui-callout--danger |
Danger tone. |
.ui-callout__icon |
Leading mask icon. |
From src/core/Callout.tsx — extends HTMLAttributes<HTMLParagraphElement>.
| Prop | Type | Default | Description |
|---|---|---|---|
tone |
'warn' | 'info' | 'danger' |
'warn' |
Visual tone. |
icon |
IconName |
tone default | Override leading icon. |
children |
ReactNode |
— | Callout body (required). |