Source List

Une liste de sources titrée, en puces ou en lignes, avec un bouton « Afficher plus ». Ou repliées en une seule puce de marques empilées avec un compteur qui ouvre la liste.

Disponible pour
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: pas encore disponible

Utilisation

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

Importation

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

Référence de l’API

SoneSourceListComponentComposant

Sélecteur
sone-source-list
Inputs
NomType Par défaut
itemsreadonly T[][]
trackByobligatoire(item: T) => string—
variantSourceListVariant"row"
sizeSourceListSize"default"
labelstring""
ariaLabelstring | nullnull
showCountbooleanfalse
limitnumber | nullnull
columns1 | 21
listboolean | nullnull

SoneSourceListItemDirectiveDirective

Sélecteur
ng-template[soneSourceListItem]
Inputs
NomType Par défaut
soneSourceListItemOfreadonly T[] | null | undefinedundefined

SoneSourceListTriggerComponentComposant

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

Sélecteur
button[soneSourceListTrigger]
Inputs
NomType Par défaut
count

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

number0