Collapsible Section

Ein einklappbarer Abschnitt mit Titel: eine Kopfzeilen-Schaltfläche mit Pfeil, Untertitel und Anzahl, darunter der Inhalt.

Verfügbar für
  • Angular: verfügbar
  • Vue: verfügbar
  • React: verfügbar
  • React Native: noch nicht verfügbar

Verwendung

  • Ada Park: share the launch checklist
  • Sam Lee: review the pricing page copy
  • Kai Moreno: book the design review

Import

ts
import {
  SoneCollapsibleSectionActionsDirective,
  SoneCollapsibleSectionComponent,
} from "@surface-one/angular/collapsible-section";

API-Referenz

SoneCollapsibleSectionActionsDirectiveDirektive

`[soneCollapsibleSectionActions]` — controls at the end of the header, outside the toggle button.

Selektor
[soneCollapsibleSectionActions]

SoneCollapsibleSectionComponentKomponente

`<sone-collapsible-section>` — a titled section that folds, built on the Collapsible: a full-width header button (chevron, `title`, optional `subtitle` and a secondary-badge `count`) that keeps `aria-expanded` / `aria-controls` in sync, and the projected body below it. `[(open)]` binds the state. Controls in `[soneCollapsibleSectionActions]` sit at the end of the header, outside the button.

Selektor
sone-collapsible-section
Export als
soneCollapsibleSection
Inputs
NameTyp Standard
titleerforderlich

The section's name, shown in the header button.

string—
subtitle

A quiet line after the title (a date range, a source).

string | nullnull
count

A count in a secondary badge after the title; `null` hides it.

number | string | nullnull
openbidirektional

Whether the body is shown (`[(open)]`).

booleanfalse
disabledbooleanfalse