Components
Callout
Tinted inline message in three tones that stays next to the content it is about.
import { Callout } from "@openperf/deft";
<Callout.Root tone="warning">
<Callout.Title>No data in the selected range</Callout.Title>
Showing the previously selected range.
</Callout.Root>;When to use
| Need | Component |
|---|---|
| Message that stays next to its content for as long as it is true | Callout |
| Result of an action the user just took | Toast |
| Nothing to show at all | Empty |
| Message about one form control | Field.Error in Field |
Tones
| Tone | Use |
|---|---|
neutral | Default. |
warning | The page shows something other than what was asked for, such as a fallback range. |
danger | A failure tied to the content, such as a section that could not load. Announced as an alert. |
The tone colors the background and the title. Callout.Title is optional: a short message can be the only child, and each direct child starts on its own line.
Callout has no icon and no close button. To let the user dismiss it, stop rendering it from your own state.
API
Callout.Root
Prop
Type