Banner

关于某种状态的常驻提示:底色、图标、文字和操作;错误使用提示消息。

查看源码
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";

属性

  • actions
    ReactNode

    小号胶囊按钮:位于右侧,与标题和文字居中对齐;横幅较窄时位于文字下方。

  • children
    ReactNode

    消息内容,需要时附带操作。

  • icon
    IconSvgElement

    替换色调自带图标的图标。

  • layout
    "inline" | "full" = inline

    位于内容中(inline)或横贯面板全宽(full)。

  • onDismiss
    (() => void)

    只有信息类横幅可以关闭。

  • title
    ReactNode

    横幅的标题。

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

    消息类型,从中性信息到危险警告。