Callouts

Callouts are highlighted boxes that make important information stand out. They're perfect for showing warnings, tips, or any message you want readers to notice. Each type has its own color and style to help convey the right tone.

Properties

type

CalloutType required

The type of callout: neutral, success, danger, warning or info

icon

string optional

A custom icon to display in the callout. Uses Scalar icon format. If not provided, the component will use the default icon for the specified callout type.

Examples

Basic Callout

This is an informational message.

<scalar-callout type="info"> This is an informational message. </scalar-callout>

This is an informational message.

:::scalar-callout{type="info"}
This is an informational message.
:::

Callout with Custom Icon

Operation completed successfully!

<scalar-callout
  type="success"
  icon="check-circle">
  Operation completed successfully!
</scalar-callout>

Operation completed successfully!

:::scalar-callout{ type="success" icon="check-circle" }
Operation completed successfully!
:::