Marker
会话中的状态行,例如“正在思考…”或“已搜索 4 条笔记”。
可用框架
Angular: 可用 Vue: 可用 React: 可用 React Native: 暂不可用
用法
Thinking…
Searched 4 meeting notes
Conversation compacted
Earlier today
<div class="demo-stack" style="max-width: 480px; width: 100%">
<div soneMarker>
<span soneMarkerIcon><sone-spinner [size]="16" [label]="null" /></span>
<span soneMarkerContent class="shimmer">Thinking…</span>
</div>
<div soneMarker>
<span soneMarkerIcon aria-hidden="true">✓</span>
<span soneMarkerContent>Searched 4 meeting notes</span>
</div>
<div soneMarker variant="separator">
<span soneMarkerContent>Conversation compacted</span>
</div>
<div soneMarker variant="border">
<span soneMarkerContent>Earlier today</span>
</div>
</div>导入
import {
SoneMarkerContentDirective,
SoneMarkerDirective,
SoneMarkerIconDirective,
} from "@surface-one/angular/marker";API 参考
SoneMarkerContentDirective指令
SoneMarkerDirective指令
| 名称 | 类型 | 默认值 |
|---|---|---|
variant | MarkerVariant | "default" |