Source List

タイトル付きのソース一覧。チップまたは行で表示し、「もっと見る」の切り替えを備えます。重ねたマークと件数を表示する 1 つのチップにまとめ、そこから一覧を開くこともできます。

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

使い方

Sources
Harbour Lane kickoff · Mar 3Pricing review · Mar 5Team retro · Mar 9
Sources5
  • Harbour Lane kickoffMar 3
  • Pricing reviewMar 5
  • Team retroMar 9

インポート

ts
import {
  SoneSourceListComponent,
  SoneSourceListItemDirective,
  SoneSourceListTriggerComponent,
} from "@surface-one/angular/source-list";

API リファレンス

SoneSourceListComponentコンポーネント

セレクター
sone-source-list
入力
名前型 デフォルト
itemsreadonly T[][]
trackBy必須(item: T) => string—
variantSourceListVariant"row"
sizeSourceListSize"default"
labelstring""
ariaLabelstring | nullnull
showCountbooleanfalse
limitnumber | nullnull
columns1 | 21
listboolean | nullnull

SoneSourceListItemDirectiveディレクティブ

セレクター
ng-template[soneSourceListItem]
入力
名前型 デフォルト
soneSourceListItemOfreadonly T[] | null | undefinedundefined

SoneSourceListTriggerComponentコンポーネント

`button[soneSourceListTrigger]` — the sources behind an answer folded into one small chip: up to three stacked marks (projected: favicons, `<sone-avatar>`s, marks) and a count (“6 sources”). It is a plain button: open the full `<sone-source-list>` from it (a popover, a sheet or a disclosure) and wire `aria-expanded` / `aria-controls` for what it opens.

セレクター
button[soneSourceListTrigger]
入力
名前型 デフォルト
count

How many sources there are (the count on the chip).

number0