Build a callout output.
Usage
mo.callout("This is a neutral callout", kind="neutral")
mo.callout("Success!", kind="success")
mo.callout("Warning: Be careful", kind="warn")
mo.callout("Error occurred", kind="danger")
You can also use the .callout() method on Html objects:
mo.md("Hooray, you did it!").callout(kind="success")
mo.md("It's dangerous to go alone!").callout(kind="warn")
Signature
mo.callout(
value: object,
kind: Literal["neutral", "warn", "success", "info", "danger"] = "neutral"
) -> Html
Parameters
A value to render in the callout.
kind
Literal['neutral', 'warn', 'success', 'info', 'danger']
default:"'neutral'"
The kind of callout (affects styling).
Returns
Callout Kinds
neutral: Default styling for general information
info: Blue styling for informational messages
success: Green styling for success messages
warn: Yellow/orange styling for warnings
danger: Red styling for errors or critical information