Disclosure
遵循 WAI-ARIA Disclosure 模式的渐进式展开区块。
可用框架
Angular: 可用 Vue: 可用 React: 可用 React Native: 可用
用法
Model size, language detection and the silence threshold live here.
Retention period and the audio budget.
Never shown while disabled.
<div class="demo-stack" style="max-width: 30rem">
<sone-disclosure [(open)]="advancedOpen" panelLabel="Advanced settings">
<span soneDisclosureSummary>Advanced settings</span>
<p style="margin: 0; color: var(--text-secondary)">
Model size, language detection and the silence threshold live here.
</p>
</sone-disclosure>
<sone-disclosure panelLabel="Storage">
<span soneDisclosureSummary>Storage</span>
<p style="margin: 0; color: var(--text-secondary)">Retention period and the audio budget.</p>
</sone-disclosure>
<sone-disclosure disabled panelLabel="Sync">
<span soneDisclosureSummary>Sync (unavailable offline)</span>
<p style="margin: 0">Never shown while disabled.</p>
</sone-disclosure>
</div>导入
import {
SoneDisclosureComponent,
} from "@surface-one/angular/disclosure";API 参考
SoneDisclosureComponent组件
| 名称 | 类型 | 默认值 |
|---|---|---|
open双向 | boolean | false |
disabled | boolean | false |
panelLabel | string | null | null |