Banner

带前置图标的单行状态提示;错误和警告会通知给屏幕阅读器。

可用框架
  • Angular: 可用
  • Vue: 可用
  • React: 可用
  • React Native: 可用

用法

导入

ts
import {
  SoneBannerComponent,
} from "@surface-one/angular/banner";

API 参考

SoneBannerComponent组件

选择器
sone-banner
输入
名称类型 默认值
kindBannerKind"info"
floating

An opaque, raised banner for an overlay (a fixed notice over the page): the overlay surface, a strong (or status-coloured) border and a large shadow instead of the translucent status tint, which would let the content underneath show through.

booleanfalse