Source List

Un elenco di fonti con titolo, sotto forma di chip o righe, con un pulsante per mostrarne di più. Oppure raccolte in un solo chip con marchi sovrapposti e un conteggio che apre l'elenco.

Disponibile in
  • Angular: disponibile
  • Vue: disponibile
  • React: disponibile
  • React Native: non ancora disponibile

Utilizzo

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

Importazione

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

Riferimento API

SoneSourceListComponentComponente

Selettore
sone-source-list
Input
NomeTipo Predefinito
itemsreadonly T[][]
trackByobbligatorio(item: T) => string—
variantSourceListVariant"row"
sizeSourceListSize"default"
labelstring""
ariaLabelstring | nullnull
showCountbooleanfalse
limitnumber | nullnull
columns1 | 21
listboolean | nullnull

SoneSourceListItemDirectiveDirettiva

Selettore
ng-template[soneSourceListItem]
Input
NomeTipo Predefinito
soneSourceListItemOfreadonly T[] | null | undefinedundefined

SoneSourceListTriggerComponentComponente

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

Selettore
button[soneSourceListTrigger]
Input
NomeTipo Predefinito
count

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

number0