Collapsible Section

折りたためるタイトル付きセクション。矢印、サブタイトル、件数を備えた見出しボタンと、その下の内容。

対応フレームワーク
  • Angular: 対応
  • Vue: 対応
  • React: 対応
  • React Native: 未対応

使い方

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

インポート

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

API リファレンス

SoneCollapsibleSectionActionsDirectiveディレクティブ

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

セレクター
[soneCollapsibleSectionActions]

SoneCollapsibleSectionComponentコンポーネント

`<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.

セレクター
sone-collapsible-section
エクスポート名
soneCollapsibleSection
入力
名前型 デフォルト
title必須

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
open双方向

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

booleanfalse
disabledbooleanfalse