Disclosure
Une section à divulgation progressive qui suit le pattern Disclosure de WAI-ARIA.
Disponible pour
Angular: disponible Vue: disponible React: disponible React Native: disponible
Utilisation
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>Importation
import {
SoneDisclosureComponent,
} from "@surface-one/angular/disclosure";Référence de l’API
SoneDisclosureComponentComposant
| Nom | Type | Par défaut |
|---|---|---|
openbidirectionnel | boolean | false |
disabled | boolean | false |
panelLabel | string | null | null |