Callout

An inline alert component for surfacing important messages with optional icon, action, and dismiss button.

Heads up!
You can change your email in your account settings.

Installation

pnpm dlx stera-ui add callout

Usage

import {
  Callout,
  CalloutContent,
  CalloutTitle,
  CalloutDescription,
} from "@/components/ui/callout"
<Callout>
  <CalloutContent>
    <CalloutTitle>Heads up</CalloutTitle>
    <CalloutDescription>This is an informational message.</CalloutDescription>
  </CalloutContent>
</Callout>

With Icon

New update available
A new version of the app is ready to install.

With Action

Cookie policy
We use cookies to improve your experience.

With Close

Cookie policy
We use cookies to improve your experience.

All Variants

Default
This is a default callout message.
Brand
This is a brand callout message.
Accent
This is an accent callout message.
Danger
This is a danger callout message.
Success
This is a success callout message.
Warning
This is a warning callout message.
VariantDescription
defaultNeutral informational callout
brandBrand-colored callout
accentAccent-colored callout
dangerError or destructive warning
successConfirmation or success message
warningCaution or advisory message

API Reference

Callout

PropTypeDefault
variant"default" | "brand" | "accent" | "danger" | "success" | "warning""default"

Subcomponents

ComponentDescription
CalloutContentWrapper for title, description, and action
CalloutTitleHeading text
CalloutDescriptionSupporting body text
CalloutActionCall-to-action link or button
CalloutCloseDismiss button rendered to the right