Source List

Eine betitelte Liste von Quellen als Chips oder Zeilen, mit Umschalter „Mehr anzeigen“. Oder zu einem Chip mit gestapelten Marken und einer Anzahl zusammengefasst, der die Liste öffnet.

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

Verwendung

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

Import

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

API-Referenz

SoneSourceListComponentKomponente

Selektor
sone-source-list
Inputs
NameTyp Standard
itemsreadonly T[][]
trackByerforderlich(item: T) => string—
variantSourceListVariant"row"
sizeSourceListSize"default"
labelstring""
ariaLabelstring | nullnull
showCountbooleanfalse
limitnumber | nullnull
columns1 | 21
listboolean | nullnull

SoneSourceListItemDirectiveDirektive

Selektor
ng-template[soneSourceListItem]
Inputs
NameTyp Standard
soneSourceListItemOfreadonly T[] | null | undefinedundefined

SoneSourceListTriggerComponentKomponente

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

Selektor
button[soneSourceListTrigger]
Inputs
NameTyp Standard
count

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

number0