Banner
先頭にグリフを持つ 1 行のステータスコールアウト。エラーと警告はスクリーンリーダーに通知されます。
対応フレームワーク
Angular: 対応 Vue: 対応 React: 対応 React Native: 対応
使い方
<div class="demo-stack" style="max-width: 34rem">
<sone-banner kind="info">The model download resumes when you’re back online.</sone-banner>
<sone-banner kind="success">Exported to your notes folder.</sone-banner>
<sone-banner kind="warning">
<strong>Live captions stopped.</strong> Recording continues and the full transcript runs after Stop.
</sone-banner>
<sone-banner kind="danger">Couldn’t reach the server. Your transcript is safe.</sone-banner>
</div>インポート
import {
SoneBannerComponent,
} from "@surface-one/angular/banner";API リファレンス
SoneBannerComponentコンポーネント
| 名前 | 型 | デフォルト |
|---|---|---|
kind | BannerKind | "info" |
floatingAn 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. | boolean | false |