Banner
A standing notice about a state: a flat plate, an icon in its tone's color, the text and actions; errors are toasts.
<div className="flex w-560 max-w-full flex-col gap-12">
<Banner tone="info" title="New models are available" actions={<Button size="sm">Review</Button>} onDismiss={() => undefined}>
KPMR added 4 models since the last sync.
</Banner>
<Banner tone="warning">This key expires in 5 days.</Banner>
<Banner tone="danger" title="This organization is scheduled for deletion" actions={<Button size="sm">Restore organization</Button>}>
Its keys stopped working; on 20 Oct 2026 it is deleted for good.
</Banner>
<Banner tone="success">Single sign-on is on for northwind.example.</Banner>
<Banner>Content logging is off for this project.</Banner>
</div>import { Banner } from "@logicplanes/kaeso-ui";Props
actionsReactNodesm pills: on the right, centered on the title and text; under the text when the banner is narrow.
childrenReactNodeThe message, with actions if it needs them.
iconIconSvgElementAn icon in place of the tone's own; a neutral banner has none unless you pass one.
layout"inline" | "full" = inlineInside the content (
inline) or across the full width of the panel (full).onDismiss(() => void)Shows a dismiss button on
neutralandinfobanners. Success, warning and danger banners stay until their cause changes, so they ignore it and warn in development.titleReactNodeThe banner's heading.
tone"neutral" | "success" | "warning" | "danger" | "info" = neutralThe kind of message, from neutral information to a danger warning.