Banner

A standing notice about a state: a tint, an icon, the text and actions; errors are toasts.

View source
New models are available
models.dev added 4 models since the last sync.
This key expires in 5 days.
Single sign-on is on for northwind.example.
Content logging is off for this project.
import { Banner } from "@logicplanes/kaeso-ui";

Props

  • actions
    ReactNode

    sm pills: on the right, centered on the title and text; under the text when the banner is narrow.

  • children
    ReactNode

    The message, with actions if it needs them.

  • icon
    IconSvgElement

    An icon in place of the tone's own.

  • layout
    "inline" | "full" = inline

    Inside the content (inline) or across the full width of the panel (full).

  • onDismiss
    (() => void)

    Only informational banners can be dismissed.

  • title
    ReactNode

    The banner's heading.

  • tone
    "neutral" | "success" | "warning" | "danger" | "info" = neutral

    The kind of message, from neutral information to a danger warning.