Callout

Admonition boxes for info, warnings, tips, and danger notices — new in v0.3.0.

Callout is new in v0.3.0. It renders styled admonition boxes using the CalloutVariant enum — useful for documentation, inline warnings, and instructional content.

Installation

bash
shellui add callout

callout-variants is auto-installed as a dependency.

Usage

All variants

Good to know
Components are copied to your project, not installed as a black-box library.
Pro tip
Use shellui add --all to install every component at once.
Heads up
This API may change in a future release.
Danger
Deleting your account is irreversible. All data will be permanently removed.
<Callout Variant="CalloutVariant.Info" Title="Good to know">
    Components are copied to your project, not installed as a black-box library.
</Callout>

<Callout Variant="CalloutVariant.Tip" Title="Pro tip">
    Use <code>shellui add --all</code> to install every component at once.
</Callout>

<Callout Variant="CalloutVariant.Warning" Title="Heads up">
    This API may change in a future release.
</Callout>

<Callout Variant="CalloutVariant.Danger" Title="Danger">
    Deleting your account is irreversible. All data will be permanently removed.
</Callout>

Without a title

ShellUI requires Tailwind CSS v4.x.
<Callout Variant="CalloutVariant.Info">
    ShellUI requires Tailwind CSS v4.x.
</Callout>

With a custom icon

Keyboard shortcut
Press Ctrl + K to open the command palette.
<Callout Variant="CalloutVariant.Tip" Title="Keyboard shortcut">
    <Icon>
        <svg class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
        </svg>
    </Icon>
    <ChildContent>
        Press <kbd>Ctrl + K</kbd> to open the command palette.
    </ChildContent>
</Callout>

Rich content

Before you upgrade

Review the following before upgrading to v0.3.0:

  • Update @bind-CurrentStep → @bind-Value on Stepper
  • Replace Trigger render fragments with subcomponents
<Callout Variant="CalloutVariant.Warning" Title="Before you upgrade">
    <p>Review the following before upgrading to v0.3.0:</p>
    <ul class="mt-2 list-disc pl-4 text-sm space-y-1">
        <li>Update <code>@@bind-CurrentStep</code> → <code>@@bind-Value</code> on Stepper</li>
        <li>Replace <code>Trigger</code> render fragments with subcomponents</li>
    </ul>
</Callout>

API Reference

Parameter Type Default Description
Variant CalloutVariant Info Visual style
Title string? null Bold heading above content
Icon RenderFragment? null Custom icon replacing the default
ChildContent RenderFragment — Callout body
Class string? null Additional CSS classes

CalloutVariant enum

Value Description
Info Blue — informational note
Tip Green — helpful suggestion
Warning Yellow/amber — caution
Danger Red — critical warning

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.