Banner

Ein bleibender Hinweis auf einen Zustand: eine Tönung, ein Symbol, der Text und Aktionen; Fehler sind Toasts.

Quelltext
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

    Kleine Pills: rechts, mittig zu Titel und Text; unter dem Text, wenn das Banner schmal ist.

  • children
    ReactNode

    Die Nachricht, bei Bedarf mit Aktionen.

  • icon
    IconSvgElement

    Ein Symbol anstelle des Symbols des Tons.

  • layout
    "inline" | "full" = inline

    Im Inhalt (inline) oder über die volle Breite des Panels (full).

  • onDismiss
    (() => void)

    Nur Info-Banner lassen sich schließen.

  • title
    ReactNode

    Die Überschrift des Banners.

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

    Die Art der Nachricht, von neutraler Information bis zur Warnung vor einer Gefahr.