Component
Callout
Mark notes, tips, and warnings with clear labels and token-backed accents.
Interactive preview
Usage
Import the component entry and start with its smallest complete example.
Import
import { Callout } from "@chitrank2050/monoline-ui/callout"Basic usage
<Callout variant="note" label="Optional Label">
This is a basic informational callout.
</Callout>
<Callout variant="tip">
This is a helpful tip callout.
</Callout>
<Callout variant="warn">
This is a warning callout.
</Callout>Usage guidance
Choose the component for its interaction model and semantics before customizing its appearance.
Callout separates a note, tip, or warning from the surrounding documentation.
The message is transient, reports a validation error, or belongs in the normal reading flow.
Callout uses an aside and a visible label, but it is not a live region. Handle urgent messages with an explicit alert strategy.
This component can render without adding a Monoline client boundary when its children and props are serializable.
API reference
Props, slots, and callbacks available on this component.
Design tokens
Theme variables this component reads for color, spacing, and motion.
Implementation
The source used by the example above, including any state it needs.
import { Callout } from "@chitrank2050/monoline-ui/callout"
export function CalloutDemo() {
return (
<Callout variant="tip" label="Pro Tip">
Use code-splitting in tsup to optimize bundles.
</Callout>
)
}Related documentation
Compare related components or review the package and theme setup.